aspose file tools*
The moose likes Web Services and the fly likes Jaxp beginners question. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Jaxp beginners question." Watch "Jaxp beginners question." New topic
Author

Jaxp beginners question.

Billy Fence
Greenhorn

Joined: Jul 17, 2003
Posts: 17
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

Joined: Jul 17, 2003
Posts: 17
Bearing in mind the wsdl.
Billy Fence
Greenhorn

Joined: Jul 17, 2003
Posts: 17
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
Venkatesh Krishnappa
Greenhorn

Joined: May 26, 2003
Posts: 16
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

Joined: Jul 17, 2003
Posts: 17
Thanks for your explaination. I assumed the generated wsdl would contain that kind of information, shouldn't it?
Billy Fence
Greenhorn

Joined: Jul 17, 2003
Posts: 17
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

Joined: Jul 17, 2003
Posts: 17
Got it sorted. Thanks for the help.
B.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jaxp beginners question.
 
Similar Threads
Communication Java-Javascript with plug-in
modification problem(modifying at the end)
Help !!!! StringIndexOut.....
How to call program arguments of different class through java code
Object Creation Steps