Two Laptop Bag*
The moose likes Web Services and the fly likes SOAP over HTTP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP over HTTP" Watch "SOAP over HTTP" New topic
Author

SOAP over HTTP

charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67
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
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67
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

Joined: Feb 24, 2004
Posts: 236
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


Paul M. Santa Maria, SCJP
charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67
Nope thats not changed. Anytime i want to run the apache implementation it executes just fine.
charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67
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
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
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.
 
wood burning stoves
 
subject: SOAP over HTTP
 
Similar Threads
How to propogate Configuration changes to different servers
null pointer exception when getting SOAP response for a webservice
RPC SOAP Client in Javascript
get Soap service return valus and EnvelopeString
HttpException: Already used, but not recycled.