Solved

Logging SOAP Request

Posted on 2010-11-28
7
1,385 Views
Last Modified: 2013-11-19
I want to log the SOAP Request came to the web service from server end. (not at client end) How can i see the exact SOAP Request sent by client at server?
0
Comment
Question by:sastry_sagi
7 Comments
 
LVL 16

Expert Comment

by:Stephan
Comment Utility
You can use the beginrequest of the global.asax for getting the request from the client.
0
 

Author Comment

by:sastry_sagi
Comment Utility
Hi,

I am trying to capture the SOAP Request came to a Web Service by logging to a file system/DB from server end. can any one provide a code snippet to capture the exact SOAP Request coming to the server. I can take care of the file system logging/DB Logging.

Thanks in Advance :)
0
 
LVL 16

Expert Comment

by:Stephan
Comment Utility
Take a look at this:
http://www.eggheadcafe.com/articles/20030813.asp

I'll be off for 5 days holiday. Hope you find your solution.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 3

Accepted Solution

by:
durgaprasadn earned 500 total points
Comment Utility
You can very well do it with the SOAP Handlers. SOAP Handlers intercept the incoming messages from the Client and out going messages from the server and log them as SOAP Request XML.

For the code snippets please refer to the following links

http://www.java-tips.org/java-ee-tips/java-api-for-xml-web-services/writing-a-handler-in-jax-ws.html

http://java.dzone.com/articles/creating-soap-message-handlers

http://www.javaworld.com/javaworld/jw-02-2007/jw-02-handler.html

Explanation of SOAP Handlers.
-------------------------------------

Handlers are interceptors that can be easily plugged into the Java API for XML-Based Web Services (JAX-WS) 2.0 runtime environment to do additional processing of inbound and outbound messages. JAX-WS defines two types of handlers: protocol handlers and logical handlers. Protocol handlers are specific to a protocol such as SOAP. They can access or change any part of the message, including protocol-specific parts such as the message header. Logical handlers are protocol-agnostic. They cannot change any protocol-specific parts of a message. Logical handlers act only on the payload of the message.

Hope this helps. Please reach out with reply in case of any clarification
0
 
LVL 29

Expert Comment

by:Kumaraswamy R
Comment Utility
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0
 
LVL 5

Expert Comment

by:Didier Vally
Comment Utility
Wireshark can be used.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now