This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Print out the SOAP request  RSS feed

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I print out the SOAP request to see how the SOAP Envelope looks like?


[ June 06, 2006: Message edited by: Jeppe Fjord ]
 
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be much less messy to use a tool like TCPMon to visualize the SOAP request and response. That's also part of the Axis download, and the documentation is here.
 
Jeppe Sommer
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that the only way to use a tool like "tcpmon" to see how the envelop looks like? I hope there was a certain method to print out what is sent to the webservice...
 
Author
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you may use a message handler to print out the soap messages.
by using handlers you can intercept a message before going out or comming in.
for more information look at :
http://www-128.ibm.com/developerworks/webservices/library/ws-tipjax1.html
 
Ulf Dittmer
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a code snippet I used to print out a SOAP message.


[ June 07, 2006: Message edited by: Ulf Dittmer ]
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When implementing this code snippet in a web service msg handler, where does the println go to?
 
Ulf Dittmer
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Paul:

It uses standard out, so whereever that goes, the output will go. On the server it usually ends up in one of the log files, but that depends on which server is used.
 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!