calling web service from another web service logging
sandeep Thandu
Greenhorn
Joined: Feb 16, 2012
Posts: 7
posted
0
I have web service-A and had Soap Message handler attached to it for logging request and responses from client
Its working fine. But when I call another web service -B from my Web service A the request and responses are not logged that are going
from my Ws-A. Any idea of how to achieve this. using Jax-Ws and Glassfish.
I am basically trying to look if a client passed parameters to Ws-A and if the Ws-A calls other web service I want all the request and responses to be logged.
Thanks.
You have a handler for service-A which logs the request and response, and your service-A sends a request to service-B?
If you want service-B to log request and response your service-B needs a similar "log handler" as service-A.
If you only want to look at the SOAP messages run with glassfish with the JVM argument.
-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true
Andi Eska wrote:You have a handler for service-A which logs the request and response, and your service-A sends a request to service-B?
If you want service-B to log request and response your service-B needs a similar "log handler" as service-A.
If you only want to look at the SOAP messages run with glassfish with the JVM argument.
-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true
Hey thanks for replying. I can able to see request and response in Ws-A and Ws-B independently. But the Problem is
I had Client calling a Ws-A and am logging request and response at WS-A, now I am calling WS-B from WS-A with the parameters passed by Client. Problem here is the Ws-A will send the request to Ws-B this request &responses I could not log at WS-A.
Note: In my ws-A am getting the response result returned by ws-B, but request and responses are not logged for some reason at Ws-A.