Hi


To put into perspective, I’m writing an SRU server ( http://www.loc.gov/z3950/agency/zing/srw/  ) to call the SRW web service equivalent of the operation. The server needs to return back the XML response from SRW web service. I have generated the stubs using wsdl2java for the SRW call. I populate the message send it via the binding and get the response class back. However, I need to return the XML form of this response but cannot seem to get hold of it. Here is the code so far:

 

ScanRequestType request = new ScanRequestType();

            …… set properties

            SRWSoapBindingStub binding = new SRWSoapBindingStub(serviceUrl, null);

            ScanResponseType response = binding.scanOperation(request);

 

What should I do now? I have the java response stub but can not see a method to get to the Message interface you suggest?

 

I just want to convert the response back to its XML form as I need to return this from my SRU Servlet.

 

Regards

 

Andy


From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: 10 November 2005 15:29
To: [email protected]
Subject: Re: Invoking serialisation

 

Use the messaging interface.

On 11/10/05, Andy Foster <[EMAIL PROTECTED]> wrote:

Hi all,

After invoking the web service call the response stub object is returned and
populated from the resulting XML.

However, my class needs to return the resulting XML body (ie without soap
envelope) to the caller rather than the generated stubs.

How do I invoke serialisation manually to take my resulting response object
and get its XML representation to return to my caller.

Regards

Andy Foster

 

Reply via email to