Hi
 
You need to generate your xmlbeans from the webservice's wsdl (if possible); 
xmlbeans will create a wrapper bean for the soap-body content element named 
XxxDocument, where Xxx is your xmlbeans type for the soap body content. 
 
For example if your root element in the soap-body is searchRequest of type 
SearchRequest, xmlbeans will create a SearchRequest interface and a 
SearchRequestDocument interface. The latter should be used to parse the 
searchRequest element, it will contain a getSearchRequest method for getting 
the actual request.. (corresponding XxxDocument interface is also created for 
the response..). 
 
we've done this with basic-profile compliant doc-literal services and it works 
very well..
 
good luck!

/Ole

________________________________

From: Cordes, Hans-Dieter [mailto:[EMAIL PROTECTED]
Sent: Wed 01/06/2005 17:19
To: [email protected]
Subject: Using SAAJ 1.3 and XMLBeans 1.0.3 for a web service client



Hello,

I use SAAJ 1.3 and XMLBeans 1.0.3 to develop a web service client. I use SAAJ 
for the SOAP part and XMLBeans for the data payload part. My problem is that I 
cannot figure out how to get the child element from the SOAP-Body element that 
corresponds to my root XMLBeans element. The work-around I use for now is that 
I iterate through all SOAP-Body childs until an XMLBeans parse method for a 
org.w3c.dom.Node object does not throw an exception. I have tried to use a 
javax.xml.soap.Name object that contains the "localname" of my XMLBeans root 
element, but that creates an empty iterator. I cannot use the 
javax.xml.soap.Name object that in addition contains the namespace prefix and 
namespace URL, as the prefix may change.

My work-around works, but it seems to be very, very ugly. Any ideas here?

I have attached the corresponding JAVA code and some logging output so you can 
see the XML I try to process.

Thanks in advance,
        Hans-Dieter Cordes

------------------------------------------------------------------------
 Hans-Dieter Cordes
 Software Dev. Spec. in the Network Configuration team

 NIBS Development & Support (Network Information & Business Systems)
 AT&T LABS EMEA

 Lyoner Strasse 24-26
 D-60528 Frankfurt
 Germany

 EMail:    [EMAIL PROTECTED]

 Phone:    +49 69 15306 235
 Fax:      +49 69 15306 330
------------------------------------------------------------------------

********************************************************************************
This message and any attachments to it contain confidential business information
intended solely for the recipients. If you have received this email in error
please do not forward or distribute it to anyone else, but call +49/69/15306-235
to report the error, and then delete this message from your system.
********************************************************************************



<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to