You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Johan Kumps <jo...@telenet.be> on 2005/06/09 15:39:32 UTC
Webservice with XML input parameter
Hi all,
I would like to deploy a webservice using Axis 1.2 with a XML-string as input parameter and a XML-string as return value.
Can you point me in the right direction? Code sample?
Thanks in advance,
Kind regards,
Johan Kumps
Re: Webservice with XML input parameter
Posted by Deepesh Garg <de...@gmail.com>.
On 6/9/05, Johan Kumps <jo...@telenet.be> wrote:
> Hi all,
>
> I would like to deploy a webservice using Axis 1.2 with a XML-string as input parameter and a XML-string as return value.
>
> Can you point me in the right direction? Code sample?
>
> Thanks in advance,
>
> Kind regards,
>
> Johan Kumps
>
>
>
I would do something like:
1) describe my service to take string input and return string response.
2) Use any tool which provides xml-java binding (like castor or JAXB)
and generate request, response java classes from xsds.
3) Use the generated classes to marshal/unmarshal request/response
java objects to xml.
Deepesh
Re: Webservice with XML input parameter
Posted by Anne Thomas Manes <at...@gmail.com>.
Axis isn't really designed to work with XML strings particularly well.
It works with Java objects (RPC, Wrapped, and Document styles) and
with XML DOM (message style). I suggest you convert your strings to
DOM and use the messaging style. See the documentation.
Anne
On 6/9/05, Johan Kumps <jo...@telenet.be> wrote:
> Hi all,
>
> I would like to deploy a webservice using Axis 1.2 with a XML-string as input parameter and a XML-string as return value.
>
> Can you point me in the right direction? Code sample?
>
> Thanks in advance,
>
> Kind regards,
>
> Johan Kumps
>
>
>