This content has been marked as final.
Show 3 replies
-
1. Re: Saving the Web Service Request as XML
romeufigueira Nov 9, 2006 1:09 PM (in response to malmit)If your're talking about saving a copy of the SOAP message on the server, then a Handler would do that for you.
You could program your HandleResponse part of the handler to save the incoming message into a xml file.
You will need to add the handler declaration to webservices.xml, setting your handler class (extending Handler or GenericHandler) in a separate java class (to be included in the WAR file as well)...... </service-impl-bean> <handler> <handler-name>ServiceHandler</handler-name> <handler-class>pakage.name.ServiceHandler</handler-class> </handler> </port-component> </webservice-description> </webservices>
-
2. Re: Saving the Web Service Request as XML
malmit Nov 9, 2006 3:36 PM (in response to malmit)Thanks this works! Does anyone know another way to serialize the Java Object to Xml within the web service implementation? I'm not sure if this is even possible.
-
3. Re: Saving the Web Service Request as XML
thomas.diesler Nov 15, 2006 7:31 PM (in response to malmit)Romeu is right, the jaxrpc handler willl do the job. With jbossws-2.0.x you will be able to use JAXB. Have a look at the JAXWS spec.