Re: converting stubs to XML

2005-11-13 Thread Yves Langisch
Andy, This should make your boss happy: public static Document serializeFromBinding(Object object, QName qname) throws ApplicationException { MessageContext msgContext = new MessageContext(new AxisServer()); msgContext.setEncodingStyle(null); TypeMappingRegis

RE: converting stubs to XML

2005-11-11 Thread Ebert, Chris
-Original Message- From: Andy Foster [mailto:[EMAIL PROTECTED] Sent: Friday, November 11, 2005 15:11 To: axis-user@ws.apache.org Subject: converting stubs to XML Hi all, I'm at my last chance now, so if someone can help that would be great else I'm going to have to hand code XML output

Re: converting stubs to XML

2005-11-11 Thread Pobzeb Armerding
Hey, guess what? That does not work after all! I guess that I hadn't ever tried to access the call object from my client. Instead, look in the SOAPInterfaceStub.java file for the call object and the invoke method that you want to get the response XML for. Then, Use the code that I had posted

Re: converting stubs to XML

2005-11-11 Thread Pobzeb Armerding
This is how I have done it: SOAPInterface service = new SOAPInterfaceLocator().getSOAPInterface(new URL("Web Service URL")); service.callSomeMethod(Parameters); ((SOAPInterfaceStub)service)._getCall().getMessageContext().getMessage().writeTo(new java.io.FileOutputStream("Path to file")); This w

converting stubs to XML

2005-11-11 Thread Andy Foster
Hi all, I'm at my last chance now, so if someone can help that would be great else I'm going to have to hand code XML output. If you use WSDL2JAVA to generate stubs and call them you get a java response object back that represents the XML response I need to get that response back into XML not th