• 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

Jaxp beginners question.

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To create a Service I use a ServiceFactory, then I create a call, specify the operation and the arguments before invoking the call. Can someone in a clear way explain to me what the arguments for these methods should point to? Cheers.
 
Billy Fence
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bearing in mind the wsdl.
 
Billy Fence
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The thing is, I think I'm doing it right. I specified the wsdl location and the service name from my wsdl. Sofar it works, but then when I invoke my Call instance I get this exception:
java.rmi.RemoteException: java.beans.IntrospectionException: Due to undefined mapping between java.lang.Object.class and XML Schema WASP can not send instance of java.lang.Object.; nested exception is:
org.idoox.xmlrpc.MessageProcessingException: java.beans.IntrospectionException: Due to undefined mapping between java.lang.Object.class and XML Schema WASP can not send instance of java.lang.Object.
org.idoox.xmlrpc.MessageProcessingException: java.beans.IntrospectionException: Due to undefined mapping between java.lang.Object.class and XML Schema WASP can not send instance of java.lang.Object.
at com.idoox.wasp.serialization.xml.XMLReflectionDeserializer.deserialize(XMLReflectionDeserializer.java:100)
at com.idoox.wasp.serialization.xml.XMLBasicConstructDeserializer.deserialize(XMLBasicConstructDeserializer.java:126)
at com.idoox.wasp.serialization.xml.XMLSimpleDeserializer.deserialize(XMLSimpleDeserializer.java:138)
at com.idoox.wasp.serialization.SerializationHelper.deserializeElement(SerializationHelper.java:349)
at com.idoox.wasp.serialization.WaspSerializationHelper.deserialize(WaspSerializationHelper.java:174)
at com.systinet.wasp.rpc.WaspCallImpl.deserializeFromXml(WaspCallImpl.java:1388)
at com.systinet.wasp.rpc.WaspCallImpl.readResponse(WaspCallImpl.java:1094)
at com.systinet.wasp.rpc.WaspCallImpl.deserializeResponse(WaspCallImpl.java:955)
at com.systinet.wasp.rpc.WaspCallImpl.invoke(WaspCallImpl.java:491)
I'm using wasp 4.6

Anyone any idea?
Thx!
Billy
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Billy,
we can't send any java objects on wire. instead, we need to serialize and map these java objects to XML types as specified in SOAP spec. and at the receiving end, we need to have a deserializer for deserializing these objects.
I have never used WASP. It looks like you are missing these mapping.
specify a mapping for your java object type and specify the (de)serializers too.
an example mapping in Axis looks like this:
For complex types:
<typeMapping encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" serializer="org.apache.axis.encoding.ser.Vector
SerializerFactory" deserializer="org.apache.axis.encoding.ser.VectorDeserializerFactory" type="java:java.util.Vector" q
name="ns1:Vector" xmlns:ns1="http://java.sun.com/jax-rpc-ri/internal"/>
For complex type but following java bean standards:
<beanMapping languageSpecificType="java:com.webservices.LoginData" qname="ns2:LoginData"
xmlns:ns2="http://webservices.com"/>

At the client end, you need to register (de)serializers for these Object types.
hope this helps,
-venky
 
Billy Fence
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your explaination. I assumed the generated wsdl would contain that kind of information, shouldn't it?
 
Billy Fence
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alternatively I have an xmap file, which should be availlable on the client (?). Can anyone tell me where a client should put that file or reference that file in the code or ....?
Cheers,
Willem
 
Billy Fence
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got it sorted. Thanks for the help.
B.
 
reply
    Bookmark Topic Watch Topic
  • New Topic