• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

No deserializer for {urn:data}

 
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic