Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP over HTTP

 
charu latha
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to send an envelope over HTTP. I initally had an apache implementation that looked like :



The above code worked just fine.

I changed the above implementation to :



And this one does not work. I am using the same request for both the implementations. The second implementation always gives me a 500 HTTP_INTERNAL_ERROR. Obviously something is wrong and i am unable to decipher what.

Can someone throw light please?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In cases like these -where code was changed, but the functionality has not- it is useful to look at the actual SOAP that gets sent over the wire, so you can compare whether they are identical. There's a tool called tcpmon which acts as a SOAP/HTTP proxy that can visualize requests and responses. It's part of Axis 1, but works independently of it.
 
charu latha
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will try out the tcpmon. In the meantime i also noticed that i get an exception and that is Permission(java.net.SocketException <url with port number> connect, resolve).

Again i havent changed the URL or the ip for this request
 
Paul Santa Maria
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi -

tcpmon is definitely an excellent suggestion - please consider it.

Also - is there any chance somebody might have changed a security policy (or similar system configuration) on your host?

Check out this link:
http://www.nabble.com/need-for-help-in-IBM-aglets-t3529930.html
 
charu latha
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope thats not changed. Anytime i want to run the apache implementation it executes just fine.
 
charu latha
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I must be a real dumb person. I cant seem to get tcp mon working either. I am assuming that i have to enter in the admin tab :

local port : <some port number where the monitor can run>
server name : <name/ip of the host where the webservice runs>
server port : <port number which hosts the service>

Is the above assumption correct?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is correct. After that all that remains to do is to point the WS client at localhost:localport, and you should start seeing requests/responses.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic