[ptt-users] Complex Java types as parameters
Staffan Starnevall
starkestaffan at hotmail.com
Sun Feb 18 23:53:58 PST 2007
Hi all,
I'm trying to test an AXIS Web Service sending a complex custom made java
type in the request. It's not working very well though..
In my jython script I do the following:
soap = ProtocolHandler.getProtocol("soap")
.
.
beanSer = org.apache.axis.encoding.ser.BeanSerializer(MyType, qName)
soap.setMapTypes(Constants.NS_URI_LITERAL_XML, qName, MyType, beanSer,
beanSer)
soap.connect()
By definition the method setMapTypes() accepts the
org.apache.soap.encoding.soapenc.BeanSerializer as its 4th input parameter.
However, since the 'MyType' object is generated with axis-ant's wsdj2java
target it requires the org.apache.axis.encoding.ser.BeanSerializer to be
properly serialized. Thus, I get an error running my code.
This is annoying!!
How can I get my custom java type serialized using the 'axis' serializer an
then still make the connect() call as I want to?
Any help is much appreciated..
/Staffan
_________________________________________________________________
Upptäck kärleken på MSN http://match.se.msn.com/
More information about the Users
mailing list