This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Soap Request/Response printing in webserice client. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Soap Request/Response printing in webserice client." Watch "Soap Request/Response printing in webserice client." New topic
Author

Soap Request/Response printing in webserice client.

Hariharasudhan Dharmalingaraja
Greenhorn

Joined: Nov 10, 2009
Posts: 3
I need to be able to store/print outgoing and incoming/outgoing soap xml when calling a web service. I am using weblogic specific jars for to do this. We are not supposed to use SAAJ, rather have to print (not at runtime) Soap Request/Response in webservice client.

In webservice client, inturn calls invoke method in StubImpl.java (Which is there in weblogic.jar).

Here is my question, Would it be possible to do this?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41147
    
  45
Are you using JAX-WS? If so, you can configure a javax.xml.ws.handler.soap.SOAPHandler to get at the actual SOAP message.


Ping & DNS - my free Android networking tools app
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I can recommend an example on how to implement SOAP logging using a handler in section 9.5 in the following document:
http://faq.javaranch.com/content/Exam-Objectives-5.pdf
Best wishes!
 
Consider Paul's rocket mass heater.
 
subject: Soap Request/Response printing in webserice client.
 
Similar Threads
Request and Response handlers (Axis2)
getting null response while calling glue webservice
customizing soap messages
finding response time for quality of webservices using java in axis2
log outgoing JAX-RPC message