• Post Reply Bookmark Topic Watch Topic
  • New Topic

No deserializer for {urn:data}

 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's making me bad now. I am getting this exception

(client.Call 2469) Exception:
org.xml.sax.SAXException: No deserializer for {urn ata}com.xxx.container.playlist.PlaylistRecord
at org.apache.axis.encoding.DeserializerImpl.onStartElement(DeserializerImpl.java:453)
at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:369)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at test.PlaylistClient.testMethod(PlaylistClient.java:65)
at test.PlaylistClient.main(PlaylistClient.java:79)
Inside Main: +; nested exception is:
org.xml.sax.SAXException: No deserializer for {urn ata}com.xxx.container.playlist.PlaylistRecord


my WSDD is-

<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="PlaylistService" provider="java:RPC">
<parameter name="className" value="com.xxx.api.playlist.PlaylistService"/>
<parameter name="allowedMethods" value="getPlaylist setPlaylist"/>

<beanMapping qname="ns:com.xxx.container.playlist.PlaylistRecord"
xmlns:ns="urn ata"
languageSpecificType="java:com.xxx.container.playlist.PlaylistRecord"/>

<beanMapping qname="ns:com.xxx.container.account.UserRecord"
xmlns:ns="urn ata"
languageSpecificType="java:com.xxx.container.account.UserRecord"/>

<beanMapping qname="ns:com.xxx.container.asset.AssetRecord"
xmlns:ns="urn ata"
languageSpecificType="java:com.xxx.container.asset.AssetRecord"/>

<beanMapping qname="ns:com.xxx.container.playlist.PlaylistClipItemParameter"
xmlns:ns="urn ata"
languageSpecificType="java:com.xxx.container.playlist.PlaylistClipItemParameter"/>

<beanMapping qname="ns:com.xxx.container.playlist.PlaylistClipItemRecord"
xmlns:ns="urn ata"
languageSpecificType="java:com.xxx.container.playlist.PlaylistClipItemRecord"/>

<beanMapping qname="ns:com.xxx.container.playlist.PlaylistClipParameterRecord"
xmlns:ns="urn ata"
languageSpecificType="java:com.xxx.container.playlist.PlaylistClipParameterRecord"/>

<beanMapping qname="ns:com.xxx.container.playlist.PlaylistClipRecord"
xmlns:ns="urn ata"
languageSpecificType="java:com.xxx.container.playlist.PlaylistClipRecord"/>

<beanMapping qname="ns:com.xxx.container.playlist.PlaylistParameterRecord"
xmlns:ns="urn ata"
languageSpecificType="java:com.xxx.container.playlist.PlaylistParameterRecord"/>

</service>

</deployment>


and my client is-

String targetNamespace = "PlaylistService";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress("http://192.168.1.163:8080/axis/services/PlaylistService");
call.setOperationName("getPlaylist");

QName qn = new QName("urn ata", "PlaylistRecord");

call.registerTypeMapping(PlaylistRecord.class, qn,
new org.apache.axis.encoding.ser.BeanSerializerFactory(
PlaylistRecord.class, qn),
new org.apache.axis.encoding.ser.BeanDeserializerFactory(
PlaylistRecord.class, qn));

call.addParameter("id", XMLType.XSD_INT, ParameterMode.IN);
call.addParameter("credential", XMLType.XSD_STRING, ParameterMode.IN);
call.setReturnType(XMLType.SOAP_ARRAY);

PlaylistRecord[] output = (PlaylistRecord[]) call.invoke(new Object[] { 1, "9b4af867274d1f95f222bfb27d05a86" });

System.out.println(output);


What is wrong here? Help me guys.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!