I still think you are not on exactly the right track.

The Convert() API is not a "public" API that I would count on.  The expectation is 
that you will have the right data types to pass to the stub function on the client, or 
to return on the server side.  You should write your own application code to get the 
data in the right form...

You can turn off skeletons, which you don't need, and just get an *Impl.java file to 
fill in the server side implementation.

Hope that helps.
--
Tom Jordahl
Macromedia Server Development



-----Original Message-----
From: easter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 8:00 AM
To: [EMAIL PROTECTED]
Subject: Re: How to get handle to this mysterious SerializationContext?


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