OK, just found out I was COMPLETELY on the wrong track.
Seems you need to call
org.apache.axis.utils.JavaUtils.convert(javaobject, xmlobject)

Which leads me to another question - which of the files, XXXSOAPBindingSkeleton and XXXSOAPBindingStub
should be used to fill in the java code?



Cheers.

I used wsdl2java to gerenate my stubs, and have duly filled out my XXXSOAPBindingImpl.java file.
The operation returns a complex array type.
Now I get to the point where i want to convert my Java object into
the return type I defined in my wsdl file, and so I duly call :

ser = XML_DSCollection_Helper.getSerializer("soapenc",
XML_DSCollection.class,
xml_DSCollectionNS);

Which gives me the bean serializer,
and to fill the object in I suppose I need to call

ser.serialize(xml_DSCollectionNS,
org.xml.sax.Attributes attributes,
dsobject,
SerializationContext context);


Where can I get handles to these objects "attributes" and "context"?
Not a single class generated by wsdl2java even mentions them?
I assume I'm doing something badly wrong...
Any help would be greatly appreciated.


Thanks
WH






Reply via email to