Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

calling web service from another web service logging

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 14
Eclipse IDE VI Editor BSD
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Eclipse IDE VI Editor BSD
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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






 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic