• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling web service from another web service logging

 
sandeep Thandu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
BSD Eclipse IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
BSD Eclipse IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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






 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic