Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 932
  • Last Modified:

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

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
AKHILKARTHIK
Asked:
AKHILKARTHIK
  • 8
  • 7
1 Solution
 
Bryan ButlerCommented:
Which monitor are you using?  Axis?
0
 
AKHILKARTHIKAuthor Commented:
Yes, Axis, actually I am using Apache TCPIP monitor
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
AKHILKARTHIKAuthor Commented:
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
 
Bryan ButlerCommented:
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
 
AKHILKARTHIKAuthor Commented:
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
 
AKHILKARTHIKAuthor Commented:
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
 
Bryan ButlerCommented:
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
 
Bryan ButlerCommented:
That is, I don't think Axis-TCPmon will work with SSL.  The software from the link seems to work with SSL.
0
 
AKHILKARTHIKAuthor Commented:
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
 
prakash_parvathCommented:
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
 
Bryan ButlerCommented:
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
 
AKHILKARTHIKAuthor Commented:
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
 
Bryan ButlerCommented:
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
 
Bryan ButlerCommented:
It looks like a script and restart IS the only thing.  Any luck?
0
 
AKHILKARTHIKAuthor Commented:
Able to implement the solution
0

Featured Post

New Tabletop Appliances Blow Competitors Away!

WatchGuard’s new T15, T35 and T55 tabletop UTMs provide the highest-performing security inspection in their class, allowing users at small offices, home offices and distributed enterprises to experience blazing-fast Internet speeds without sacrificing enterprise-grade security.

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now