aspose file tools*
The moose likes Web Services and the fly likes calling web service from another web service logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "calling web service from another web service logging" Watch "calling web service from another web service logging" New topic
Author

calling web service from another web service logging

sandeep Thandu
Greenhorn

Joined: Feb 16, 2012
Posts: 7
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.
Andi Eska
Greenhorn

Joined: Jun 20, 2003
Posts: 14

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

see
Monitoring SOAP Messages Made Easy With JAX-WS RI 2.0.1
How to set "jvm option" or "system properties" in GlassFish ?

Yours
andi
sandeep Thandu
Greenhorn

Joined: Feb 16, 2012
Posts: 7
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

see
Monitoring SOAP Messages Made Easy With JAX-WS RI 2.0.1
How to set "jvm option" or "system properties" in GlassFish ?

Yours
andi


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.

Hope I think my question is clear.
Andi Eska
Greenhorn

Joined: Jun 20, 2003
Posts: 14

Problem here is the Ws-A will send the request to Ws-B this request &responses I could not log at WS-A.


In this case WS-A is the client of WS-B.

You need to capture SOAP Message on the client side (WS-A). This can be done the following way:
see https://blogs.oracle.com/binublog/entry/jax_ws_capturing_soap_messages

andi






 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling web service from another web service logging