Hello, 
 
Does anybody know about this problem? 
 
Thanks in advance. 

  _____  

De: Daniel Sanchez Gonzalez 
Enviado el: martes, 22 de febrero de 2011 18:52
Para: '[email protected]'
Asunto: Error in Axis2 client and Wsdl2java tool



Hello, 

 

I've created a WS client by using axis2's wsdl2java tool. The next error occurs 
when invoking this client: 

 

org.apache.axis2.AxisFault: No Deserializer found to deserialize a ':paramName' 
using encoding style 'null'. [java.lang.IllegalArgumentException] at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512) 
at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
 at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)at
  org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at 
.......

 

There is no problem when using SoapUI. The request in soapUI is like this

 

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:myname="ServiceName">   

      <soapenv:Header/>   

      <soapenv:Body>      

         < myname:operationName 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>         

            <paramName xsi:type="xsd:string">ParamValue</paramName>         

            <paramName2 xsi:type="xsd:string">ParamValue2</paramName2>         

         </myname:existeDVA>   

      </soapenv:Body>

   </soapenv:Envelope>

 

but when I send the request with my client, it's different:

 

   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>

      <soapenv:Body>

         <ns1:operationName xmlns:ns1="ServiceName">

            <paramName>ParamValue</paramName>

            <paramName2>ParamValue2</paramName2>

         </ns1:operationName>

      </soapenv:Body>

   </soapenv:Envelope>

 

 

I've made some modifications in OperationName class and it works, but I have to 
touch the automatically generated class. 

 

This is one of my corrections (when writting paramName): 
xmlWriter.writeAttribute("xsi:type", "xsd:string");

 

What can be wrong? 

 

Thanks in advance.

 

Regards, 

 

Dani 



__________ Información de ESET NOD32 Antivirus, versión de la base de firmas de 
virus 5896 (20110222) __________

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com


__________ Información de ESET NOD32 Antivirus, versión de la base de firmas de 
virus 5903 (20110224) __________

ESET NOD32 Antivirus ha comprobado este mensaje.

http://www.eset.com

Reply via email to