How to log JAX-RPC incoming and outgoing messages on the client side?
-
configuration : Jrockit (1.6) Weblogic (10.3) JAX-RPC I know there is a simple way to log JAX-WS messages by adding the following arguments to JAVA_OPTS : http://-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true http://-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true Is there a similar way to log JAX-RPC messages ? I tried using a webSvc handler with the following code : public boolean handleRequest(MessageContext context) { SoapMessageContext msg=(SoapMessageContext) context; SOAPMessage soapMessage=msg.getMessage(); System.Out.Println(soapMessage); } However as soapMessage returns a POJO, it does not seem to print the actual HTTP request which shall be sent to the webSvc. I would like to print the entire message (including the soap envelope) as it is sent/received for a JAX-RPC webSvc on the client side. HELP !
-
Answer:
You need to implement your own Handler and use handleRequest/handleResponse. Read This: http://www.ibm.com/developerworks/webservices/library/ws-tipjax2/index.html
Paul Campbell at Quora Visit the source
Related Q & A:
- How do I take my name off outgoing messages?Best solution by Yahoo! Answers
- How do I find out what may email server incoming and outgoing servers?Best solution by Yahoo! Answers
- How do I delete attachments from incoming and outgoing e-mails?Best solution by Yahoo! Answers
- How can I get the remote server's date and time at the client side in my application in c#?Best solution by Stack Overflow
- How do I check my incoming and outgoing messages on yahoo answers?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.