Solved

Logging SOAP Request

Posted on 2010-11-28
7
1,388 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
ID: 34226291
You can use the beginrequest of the global.asax for getting the request from the client.
0
 

Author Comment

by:sastry_sagi
ID: 34227651
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
ID: 34228355
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Accepted Solution

by:
durgaprasadn earned 500 total points
ID: 34284365
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
ID: 34459416
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
ID: 35235674
Wireshark can be used.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IIS URL Rewrite to do 2 actions: Set a ServerVariable, then redirect 3 65
C# GridRow get Old/New Value 1 55
SSRS ReportViewer report timeout 7 101
Turn on intranet settings 1 37
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

912 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

20 Experts available now in Live!

Get 1:1 Help Now