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

Reply via email to