Hallo,
ich erstelle ueber JBoss 3.0 einen Webservice. Dabei lass ich mir automatisch vom wscompile das "mapping.xml" und wsdl file erstellen.
Der Service funktioniert, aber mit dem Mapping kommt der Service nicht klar.
WARN org.jboss.webservice.deployment.TypeMappingDescrip tion[main] - Class not found: de.mywsdl.www.ArrayOfConsumerCategories
Wie kann ich das ganze umbiegen, dass es geht? (Mapping? Encoding? Wrapper???)
Gruß
ADICKO
Mein wsdl-file:
<PRE>
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="ConsumerActivityService"
targetNamespace="http://www.mywsdl.de/wsdl"
xmlns:tns="http://www.mywsdl.de/wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:ns2="http://www.mywsdl.de">
<types>
<schema targetNamespace="http://www.mywsdl.de"
xmlns:tns="http://www.mywsdl.de"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOfConsumerCategories">
<complexContent>
<restriction base="soap11-enc:Array">
<attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:ConsumerCategories[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="ConsumerCategories">
<sequence>
<element name="categoryId" type="soap11-enc:int"/>
<element name="categoryName" type="string"/>
<element name="itemCount" type="soap11-enc:int"/>
<element name="ConsumerCount" type="soap11-enc:int"/>
<element name="sortOrder" type="soap11-enc:int"/>
</sequence>
</complexType>
</schema>
</types>
<message name="ConsumerActivityEndpoint_getConsumerCategori esArray">
<part name="String_1" type="xsd:string"/></message>
<message name="ConsumerActivityEndpoint_getConsumerCategori esArrayResponse">
<part name="result" type="ns2:ArrayOfConsumerCategories"/></message>
<portType name="ConsumerActivityEndpoint">
<operation name="getConsumerCategoriesArray" parameterOrder="String_1">
<input message="tns:ConsumerActivityEndpoint_getConsumerC ategoriesArray"/>
<output message="tns:ConsumerActivityEndpoint_getConsumerC ategoriesArrayResponse"/></operation></portType>
<binding name="ConsumerActivityEndpointBinding" type="tns:ConsumerActivityEndpoint">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="getConsumerCategoriesArray">
<soap
peration soapAction=""/>
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mywsdl.de/wsdl"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mywsdl.de/wsdl"/></output></operation></binding>
<service name="ConsumerActivityService">
<port name="ConsumerActivityEndpointPort" binding="tns:ConsumerActivityEndpointBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
</PRE>
ich erstelle ueber JBoss 3.0 einen Webservice. Dabei lass ich mir automatisch vom wscompile das "mapping.xml" und wsdl file erstellen.
Der Service funktioniert, aber mit dem Mapping kommt der Service nicht klar.
WARN org.jboss.webservice.deployment.TypeMappingDescrip tion[main] - Class not found: de.mywsdl.www.ArrayOfConsumerCategories
Wie kann ich das ganze umbiegen, dass es geht? (Mapping? Encoding? Wrapper???)
Gruß
ADICKO
Mein wsdl-file:
<PRE>
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="ConsumerActivityService"
targetNamespace="http://www.mywsdl.de/wsdl"
xmlns:tns="http://www.mywsdl.de/wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:ns2="http://www.mywsdl.de">
<types>
<schema targetNamespace="http://www.mywsdl.de"
xmlns:tns="http://www.mywsdl.de"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOfConsumerCategories">
<complexContent>
<restriction base="soap11-enc:Array">
<attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:ConsumerCategories[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="ConsumerCategories">
<sequence>
<element name="categoryId" type="soap11-enc:int"/>
<element name="categoryName" type="string"/>
<element name="itemCount" type="soap11-enc:int"/>
<element name="ConsumerCount" type="soap11-enc:int"/>
<element name="sortOrder" type="soap11-enc:int"/>
</sequence>
</complexType>
</schema>
</types>
<message name="ConsumerActivityEndpoint_getConsumerCategori esArray">
<part name="String_1" type="xsd:string"/></message>
<message name="ConsumerActivityEndpoint_getConsumerCategori esArrayResponse">
<part name="result" type="ns2:ArrayOfConsumerCategories"/></message>
<portType name="ConsumerActivityEndpoint">
<operation name="getConsumerCategoriesArray" parameterOrder="String_1">
<input message="tns:ConsumerActivityEndpoint_getConsumerC ategoriesArray"/>
<output message="tns:ConsumerActivityEndpoint_getConsumerC ategoriesArrayResponse"/></operation></portType>
<binding name="ConsumerActivityEndpointBinding" type="tns:ConsumerActivityEndpoint">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="getConsumerCategoriesArray">
<soap
![Peinlichkeit](https://entwickler-forum.de/core/images/smilies/redface.png)
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mywsdl.de/wsdl"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://www.mywsdl.de/wsdl"/></output></operation></binding>
<service name="ConsumerActivityService">
<port name="ConsumerActivityEndpointPort" binding="tns:ConsumerActivityEndpointBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
</PRE>