• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SOAP over HTTP

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic