I used castor to generate the classes based on the xsd I was using
String xxx(String in) {
try {
StringReader reader = new StringReader(in);
CastorObject obj = CastorObject.unmarshal(reader);
...
StringWriter writer = new StringWriter();
SomeOtherCasterObject obj2 = new SomeOtherCastorObject();
...
obj2.marshal(writer);
String response = writer.toString();
return response;
}
catch(Exception ex) {
// handle marhall/unmarshall exceptions, other checked exceptions
}
}
now you have an object ready to use based on an xml document.
-----Original Message-----
From: Carter, John G [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:36 AM
To: [EMAIL PROTECTED]
Subject: RE: Allowing multiple operations in message-style web services
Could you give me some more details on this? Seems like I tried this where
my method signature was something like:
String xxx(String in)
But the input string had "<", ">", etc. instead of the XML characters
(<,>,etc)
-----Original Message-----
From: Nicolas Johnson [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 7:41 AM
To: [EMAIL PROTECTED]
Subject: RE: Allowing multiple operations in message-style web services
I ran across the same issue where I wanted to return an xml document.
Using RPC/encoded I serialized the XML to a string and returned that. You
could likewise have single input be a serialized XML string.
-----Original Message-----
From: Carter, John G [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 5:43 PM
To: [EMAIL PROTECTED]
Subject: Allowing multiple operations in message-style web services
I seem to recall reading (but I can not remember where) that when using
message-style for a web service, only one operation may be included per web
service as Axis can not determine which operation to execute. Are there any
plans to remove this limitation? I have to use message style because I need
to access the XML in the SOAP body. I would like to include multiple
operations in a single web service rather than having to maintain lots of
separate source, wsdl, and wsdd files. Can anyone suggest another method of
getting to the XML in the SOAP body w/o using the message style?
> John Carter
> Computer Associates
> Advantage Gen Architect
> tel: +1 214 473 1259
> [EMAIL PROTECTED]
>