This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Web Services and the fly likes My first webservice call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "My first webservice call" Watch "My first webservice call" New topic
Author

My first webservice call

Shriram Krishnamoorthy
Greenhorn

Joined: Dec 21, 2005
Posts: 5
Hello All,
I am trying to write a webservice call client for a webservice at http://www.webservicex.net/WeatherForecast.asmx?WSDL

. But I have some problms in invokint the call. This is the code I have. Please let me know whats wrong with it.

Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42952
    
  73
But I have some problms in invokint the call.

What problems are those? TellTheDetails

Also, please edit your post to UseCodeTags. It's unnecessarily hard to read the code as it is, making it less likely that people will bother to do so.
Shriram Krishnamoorthy
Greenhorn

Joined: Dec 21, 2005
Posts: 5
This is the error message after invoking the service

Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42952
    
  73
You may want to use a tool like tcpmon or SOAPUI to monitor what's going over the wire. The default HTTP method for SOAP is POST, so if the service doesn't like what's being sent you should examine what *is* being sent.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My first webservice call