Solved

Logging SOAP Request

Posted on 2010-11-28
7
1,403 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

688 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