I have 2 clients: one using the generated client Stub (from WSD2Java) and one using the DII.
The DII is not working properly.

Target endpoint: http://localhost:8080/axis/servlet/AxisServlet
org.xml.sax.SAXException: Deserializing parameter 'token':  could not find deserializer
for type http://www.vodafone.com/schemas/2002/02:AuthToken

I have ran tcpmon and saw that in both cases, the return XML data is exactly the same.

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <SOAP-ENV:Body>
  <ns1:getAuthTokenResponse xmlns:ns1="urn:security2">
   <token href="#id0"/>
  </ns1:getAuthTokenResponse>
  <multiRef id="id0" SOAP-ENC:root="0" xsi:type="ns2:AuthToken" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.vodafone.com/schemas/2002/02">
   <authInfo href="#id1"/>
  </multiRef>
  <multiRef id="id1" SOAP-ENC:root="0" xsi:type="ns3:AuthInfo" xmlns:ns3="http://www.vodafone.com/schemas/2002/02" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
   <data xsi:type="xsd:base64Binary">SGVsbG8gd29ybGQ=</data>
  </multiRef>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

My deploy.wsdd is:

<deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
  <!-- Services from SecurityService WSDL service -->

  <service name="urn:security2" provider="java:RPC">
      <parameter name="className" value="com.vodafone.security.SecurityBindingSkeleton"/>
      <parameter name="allowedMethods" value="getAuthToken"/>

      <typeMapping
        xmlns:ns="http://www.vodafone.com/schemas/2002/02"
        qname="ns:AuthToken"
        type="java:com.vodafone.security.AuthToken"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
      <typeMapping
        xmlns:ns="http://www.vodafone.com/schemas/2002/02"
        qname="ns:AuthInfo"
        type="java:com.vodafone.security.AuthInfo"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
  </service>
</deployment>

Any clue ??

Olivier

Reply via email to