Hi,

I am trying to figure out how to pass xml data in my WebServcies interface.  
Basically I want to my server to create an xml document from internal data and 
return it to the client.  I want my service interface to look something like 
this:

xmlDocument getRequestedStats( xmlDocument )
(Where xmlDocument is not a data type, just the content of the data I want to 
send)

Where the input and output are in memory xml documents and are created and 
managed by AXIOM.  However what I do not know how to do is to define java class 
on the server side such that java2wsdl will create the correct interface for 
the client and server to send/receive xml documents.

So imagine if I have a document on the client that looks something like this:

<po:data-request> 
   xmlns:po="http://dataservice.org/db";>
      <po:request>
         item75
      </po:request>
</po:data-request>

and I want the server to dynamically (using Axiom) generate response xml that 
might look somthing like this:

<po:data-response> 
   xmlns:po="http://dataservice.org/db";>
      <po:response>
         CDATA[ info about item 75 here]
      </po:response>
</po:data-response>

I have looked at using strings, OMDocuments and OMElements and serialization 
but nothing seems to make sense.  There must be an easy and correct way to do 
this but I am just not seeing it.  I do not have a lot of WebServer development 
experience so I am probably just missing something obvious.

I guess SOAP wraps my data but I want to wrap my data in XML.  I looked at 
simply making the interface
String getRequestedStats( String str )
but somehow I need to get from str to OMDocument and back.

Thanks in advance.


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

Reply via email to