examples/message should be a good starting point
regards
andreas
----- Original Message -----
From: "Peter Ross" <[EMAIL PROTECTED]>
To: "Axis Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 12:39 PM
Subject: Getting a webservice to return it's result as XML.
> Hi,
>
> I am trying to write a simple web-service.
>
> public String GetForms()
> {
> return "<Forms><Form>XXX</Form><Form>YYY</Form></Forms>";
> }
>
> Currently when I expose this as a web-service it returns the XML
> response as a string.
>
> <GetFormsReturn xsi:type="xsd:string">
> <Forms><Form>FormA</Form><Form>FormB</Form><Form>FormC</Form></Forms>
> </GetFormsReturn>
>
> What I would like to do is to return the XML directly. From my reading
> of the Axis users guide I need to use a Document, Wrapped or Message
> style service. However I am finding the documentation on these
> confusing, and am unclear how I go about doing it.
>
> If anyone can point me to some more documentation about which service to
> use and how to do it, that would be great.
>
> Regards,
> Peter Ross