-1

I auto generated WS client from WSDL file (using eclipse).

I am using this client to invoke a method, for example:

Proxy proxy = new Proxy();
    try{
        object view = proxy.invokeEndPoint(input);
    }
    catch (Exception e) {
        e.printStackTrace();
    }

This call invokes the operation and gives me a result (for HTTP it suppose to return a xml).

How do i get the entire xml response.

In reality i get an object (view) which can contain many other objects, how do i get the raw xml response?

Michael A
  • 5,770
  • 16
  • 75
  • 127

3 Answers3

0

In case you only want to see the XML for debugging there is a very simple SOAPMonitor in Apache Axis, which can be used as a proxy to view SOAP requests and responses.

Spindizzy
  • 7,244
  • 1
  • 19
  • 33
0

I guass the only solution is to overide the ToString method of the return object and manually build the String.

Michael A
  • 5,770
  • 16
  • 75
  • 127
0

Use socat linux command

A example: http://qbit.com.mx/blog/2014/02/13/como-debuguear-un-cliente-de-webservice-java/

Zeru Giran
  • 41
  • 3