By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,541 Members | 1,106 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,541 IT Pros & Developers. It's quick & easy.

WSDL2Java classes to XML

P: n/a
Does anyone know how to go from a WSDL2Java generated class to an XML
string of XML document. I know that there is some serialization here
but I don't know what classes to call to do the serialization. Can
anyone help?

Thanks

_someGenClass someClass = new _someGenClass();

// do I use this function or is there some XML serialize class that
// I can cast to?
someClass.getSerializer(/* some stuff here */);
// I want to get to this point or to a string
SOAPBodyElement
// or to a
org.w3c.dom.Document
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Wed, 05 Nov 2003 00:04:10 -0800, J.Eddy wrote:
Does anyone know how to go from a WSDL2Java generated class to an XML
string of XML document. I know that there is some serialization here
but I don't know what classes to call to do the serialization. Can
anyone help?

Thanks

_someGenClass someClass = new _someGenClass();

// do I use this function or is there some XML serialize class that
// I can cast to?
someClass.getSerializer(/* some stuff here */);
// I want to get to this point or to a string
SOAPBodyElement
// or to a
org.w3c.dom.Document

Hi J.Eddy-

Why would you want to go from an object representation to XML format? If
serialization is the response, perhaps you could do something less
platform independent. If the answer is interoperability, the SOAP layer
you're using (I assume it's Axis) should provide the capability
automatically.

-c
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.