Solved

How to use the TCP IP monitor to debug the SOAP messages

Posted on 2010-09-08
16
859 Views
Last Modified: 2013-11-18
I want to use Apache's TCPIP monitor, to know the processing time for each request, for the SOAP requests i sent to server and the corresponding response times.

i have to use the https ://  URL (i.e. SSL enabled url).

I know for http:// URL(i..e no SSL enabled url), i can use port 8080 and can intercept the calls to server.

How do i accomplish the same for SSL enabled Urls.Any suggestions will be highly appreciable.Also, please give any suggestions if you think any alternate tool will be able to serve the solution to my above  mentioned  problem.Will SOAP UI can be used for HTTPS ??

Thanks in advance..
0
Comment
Question by:AKHILKARTHIK
[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
  • 8
  • 7
16 Comments
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 33629881
Which monitor are you using?  Axis?
0
 

Author Comment

by:AKHILKARTHIK
ID: 33630237
Yes, Axis, actually I am using Apache TCPIP monitor
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 33630706
0
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 

Accepted Solution

by:
AKHILKARTHIK earned 0 total points
ID: 33633546
Thanks for inputs. Basically i want to intercept the calls made to HTTPS (i..e SSL enabled webservice call), so for this how do i do using TCP/IP Monitor?

I am able to intercept the calls made to regular HTTP :// webservice, using 8080 port, but could not accomplish with SSL enabled URL.

Any suggestions will be highly appreciable.
Thanks
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 33640399
When you say you were able to capture the calls, how did you do this?  I'm thinking you would use the logs.  If this is the case, you will do SSL URLs the same way.
0
 

Author Comment

by:AKHILKARTHIK
ID: 33640479
For debugging, i want to know how to see the messages sent to Server and response back from server.
For normal HTTP calls, i am using TCPMON to intercept the call using localhost and giving the target hostname and target port number of server.
This way, when i run the application, i can see the requests and responses made to the server in TCPMonitor.

I wanted to do the same for HTTPS URL.

Can you give some insights on logs, as i can see that as an alternate solution for my debugging.
THanks,
0
 

Author Comment

by:AKHILKARTHIK
ID: 33641188
I have a javaclient calling in Htts :// webservice call. As SSL eanbled ,the message will be encryted. Is there a way, i can log the Request/Response XMLS, as it will be easy for my debugging. I wanted to have the logging avaliable for debugging. How do we accomplish using Apache Axis stubs? as i am using Apache Axis wsdl2java and would like to know if there are any example on how to use  any Axis logging to log the SOAP Request/Responses?
Thanks,
-
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 33641710
Looks like you might want to try http://www.soapui.org/SOAP-Recording/recording-soap-trafic.html

I don't think it will work for SSL.
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 33641720
That is, I don't think Axis-TCPmon will work with SSL.  The software from the link seems to work with SSL.
0
 

Author Comment

by:AKHILKARTHIK
ID: 33642483
In previours posts by developedtester, i see there is a suggestion for logging in the SOAP Requests/Responses..
"Will logging get the info you need?

http://www.theserverside.com/discussions/thread.tss?thread_id=35765
http://www.google.com/support/adwordsapi/bin/answer.py?answer=15137&topic=237
http://ws.apache.org/axis/java/developers-guide.html#Logging/Tracing "

Do you have any example as how it was implemented.

My case, i am using Apache Axis wsdl2java . I wanted to log the Request/responses for my debugging.Can you give any suggestions/examples as to how to accomplish that..

I want to write to logs the SOAP requests/Responses .We are using log4j for logging.

Any help is highly appreciated.

Thanks in advance,
0
 
LVL 3

Expert Comment

by:prakash_parvath
ID: 33672282
you should use WSMonitor available at following location

https://wsmonitor.dev.java.net/

and also, you can configure the endpoint url / port in a verysimple configuration xml

and you have to point your Service endpoint (WSDL endpoint) to the port of WSMonitor

it'll just bypass the incoming and outgoing SOAP messages and logs them on its console.

a very handy and simple tool.
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 33704107
Are you getting anywhere?  

in the server-config.wsdd you have:

<handler name="Log" type="java:org.apache.axis.handlers.LogHandler" />

Or something similar, right?  (the log is in C:\WINDOWS\System32)

If so, can you post what you see in the logs for the requests?

And just to be clear, when you said "Yes, Axis, actually I am using Apache TCPIP monitor", the TCPIP Monitor which you are referring to is the one that changed it's name to Axis, right?

0
 

Author Comment

by:AKHILKARTHIK
ID: 33706707
Without setting in the server-config.wsdd, can we set it programmatically. The reason is, i use Axis wsdl2java and don't have server config files handy to set. Can it be set programmactically?
Thanks,
-AkhilKarthik
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 34503690
Did you ever firgure anything out?  I don't think it can be changed programatically except for a script which would restart the server after changing the config file.
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 35334528
It looks like a script and restart IS the only thing.  Any luck?
0
 

Author Closing Comment

by:AKHILKARTHIK
ID: 37905406
Able to implement the solution
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

734 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