Solaris - Utility to capture SOAP

Hi,

I was wondering what would be the best tool to capture SOAP requests in a Solaris OS. The SOAP requests are in a xml format.

So far I tried to use:
ngrep -W byline -d igb2 port 7700

Used byline so the output retains the natural line breaks...

And did not try the tcpreplay (which I think might work.

The goal is to have the output to be used for a possible resend later on...

Any suggestion?

Tks,
Joao
joaotellesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gerwin Jansen, EE MVETopic Advisor Commented:
From where to where are you sending the request? I used Wireshark to get details of a SOAP message and successfully debugged the. message.
0
joaotellesAuthor Commented:
Its an external system sending the SOAP requests via a endpoint address to an server that will process them.

What Im looking is something that I can leave it running so I can capture all the incoming requests xml code (plain) and maybe to use it to reprocess later on...

Wireshark I use for debug (as you say)... So not the goal here...

With the ngrep command I was able to see the plain xml (ngrep -W byline -d igb2 port 7700).

My question is: Is there a better option for Solaris env (s)?

Tks,
Joao
0
Gerwin Jansen, EE MVETopic Advisor Commented:
Basically you have 2 choices:

1 - capture the SOAP/XML message before it hits the server
2 - have the server log the message before processing

For 1) you can use ngrep, wireshark or other monitoring tools, for 2) you probably have to modify your webservice/server so that it logs the message.

The nicest way of doing this would be 2) where you can enable/disable incoming XML messages.

But if you want the complete SOAP message then 1) would be your option as the server will strip the SOAP envelope and only allow you to log the XML message.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
joaotellesAuthor Commented:
Tks for the reply!

I think I will go with the #1 as per the reasons you mentioned....

One last question, have you ever used the tool tcpreplay for the option #1? I had this one as the second choice after the ngrep...
0
Gerwin Jansen, EE MVETopic Advisor Commented:
No tcprelay experience, just know that you have to capture traffic first before you can use tcprelay to resend your capture.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.