Hi all,


I have a problem with AXIS2, I've created a web service and I did the deploy of AAR on AXIS2.

Then, I've generated a client in order to test it, using a Eclipse plug-in and starting it from WSDL I got a error message.



In the meantime the client is being executed I have the following exception:


java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement retrieveCustomerIdentifyByCFResponse at it.postecom.client.CustomerServiceCustomerServiceSOAP12Port_httpStub.fromOM(CustomerServiceCustomerServiceSOAP12Port_httpStub.java:4439) at it.postecom.client.CustomerServiceCustomerServiceSOAP12Port_httpStub.retrieveCustomerIdentifyByCF(CustomerServiceCustomerServiceSOAP12Port_httpStub.java:162)
   at it.postecom.client.ClientProva.main(ClientProva.java:15)
Caused by: java.lang.RuntimeException: Unexpected subelement retrieveCustomerIdentifyByCFResponse at it.postecom.client.CustomerServiceCustomerServiceSOAP12Port_httpStub$RetrieveCustomerIdentifyByCFResponse$Factory.parse(CustomerServiceCustomerServiceSOAP12Port_httpStub.java:3068) at it.postecom.client.CustomerServiceCustomerServiceSOAP12Port_httpStub.fromOM(CustomerServiceCustomerServiceSOAP12Port_httpStub.java:4433)
   ... 2 more

My WSDL :
<wsdl:definitions
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns="http://www.w3.org/2001/XMLSchema";
xmlns:tns="http://my.it";
xmlns:typens="http://my.it/data";
targetNamespace="http://my.it";>
   <wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"; attributeFormDefault="qualified" targetNamespace="http://my.it/data";>
<!-- TYPE OUT -->
           <complexType name="CustomerServiceOutDTO">
               <sequence>
<element name="customerIdentify" type="typens:CustomerIdentify"/>
                   <element name="result" type="typens:Result"/>
               </sequence>
           </complexType>
           <complexType name="Result">
               <sequence>
                   <element name="resultCode" type="string"/>
                   <element name="errorCode" type="string"/>
                   <element name="appCode" type="string"/>
                   <element name="techMsg" type="string"/>
                   <element name="usrMsg" type="string"/>
               </sequence>
           </complexType>
           <complexType name="CustomerIdentify">
               <sequence>
                   <element name="cf" type="string"/>
                   <element name="name" type="string"/>
                   <element name="surname" type="string"/>
                   <element name="gender" type="string"/>
                   <element name="email" type="string"/>
                   <element name="birthDay" type="string"/>
                   <element name="birthPlace" type="string"/>
                   <element name="nationCode" type="string"/>
                   <element name="nation" type="string"/>
                   <element name="address" type="string"/>
                   <element name="postalCode" type="string"/>
                   <element name="city" type="string"/>
                   <element name="prov" type="string"/>
                   <element name="telephoneNumber" type="string"/>
                   <element name="documentType" type="string"/>
                   <element name="documentNumber" type="string"/>
                   <element name="releaseBy" type="string"/>
                   <element name="releaseDate" type="string"/>
                   <element name="expireDate" type="string"/>
               </sequence>
           </complexType>
<!-- Elementi IN -->
           <element name="RetrieveCustomerIdentifyByCFRequest">
           <complexType>
               <sequence>
                   <element name="requestId" type="string"/>
                   <element name="cf" type="string"/>
               </sequence>
           </complexType>
           </element>
<!-- Element OUT -->
<element name="RetrieveCustomerIdentifyByCFResponse" type="typens:CustomerServiceOutDTO"/>
       </schema>
   </wsdl:types>
<!-- MESSAGE -->
   <wsdl:message name="RetrieveCustomerIdentifyByCFMessage">
<wsdl:part name="input" element="typens:RetrieveCustomerIdentifyByCFRequest"/>
   </wsdl:message>
   <wsdl:message name="RetrieveCustomerIdentifyByCFResponseMessage">
<wsdl:part name="data" element="typens:RetrieveCustomerIdentifyByCFResponse"/>
   </wsdl:message>
<!-- PORT -->
   <wsdl:portType name="CustomerServicePortType">
       <wsdl:operation name="retrieveCustomerIdentifyByCF">
<wsdl:input message="tns:RetrieveCustomerIdentifyByCFMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; wsaw:Action="http://my.it/CustomerServicePortType/RetrieveCustomerIdentifyByCF"/> <wsdl:output message="tns:RetrieveCustomerIdentifyByCFResponseMessage" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; wsaw:Action="http://my.it/CustomerServicePortType/RetrieveCustomerIdentifyByCFResponse"; />
       </wsdl:operation>
   </wsdl:portType>
<!-- BINDING -->
<wsdl:binding name="CustomerServiceSOAP11Binding" type="tns:CustomerServicePortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
       <wsdl:operation name="retrieveCustomerIdentifyByCF">
           <soap:operation soapAction=""/>
           <wsdl:input>
               <soap:body use="literal"/>
           </wsdl:input>
           <wsdl:output>
               <soap:body use="literal"/>
           </wsdl:output>
       </wsdl:operation>
   </wsdl:binding>
<wsdl:binding name="CustomerServiceSOAP12Binding" type="tns:CustomerServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document"/>
       <wsdl:operation name="retrieveCustomerIdentifyByCF">
<soap12:operation soapAction="http://my.it/retrieveCustomerIdentifyByCF"/>
           <wsdl:input>
               <soap12:body use="literal"/>
           </wsdl:input>
           <wsdl:output>
               <soap12:body use="literal"/>
           </wsdl:output>
       </wsdl:operation>
   </wsdl:binding>
<!-- SERVICE -->
   <wsdl:service name="CustomerService">
<wsdl:port name="CustomerServiceSOAP11port" binding="tns:CustomerServiceSOAP11Binding"> <soap:address location="http://localhost:8080/axis2/services/CustomerService"/>
       </wsdl:port>
<wsdl:port name="CustomerServiceSOAP12port" binding="tns:CustomerServiceSOAP12Binding"> <soap12:address location="http://localhost:8080/axis2/services/CustomerService"/>
       </wsdl:port>
   </wsdl:service>
</wsdl:definitions>


In the soap message response i have this object retrieveCustomerIdentifyByCFResponse instead of RetrieveCustomerIdentifyByCFResponse.


Could you kindness help me?



I'm currently using a Sun Application Server 9, JAX-WS, AXIS2 1.3, JDK 1.6.



Thanks in advance for your prompt support.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to