Solved

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

Posted on 2010-09-08
16
821 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
  • 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
 

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
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 look for a specific file type in a local or remote server directory using PHP.

705 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

22 Experts available now in Live!

Get 1:1 Help Now