File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
Marshal

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


Ping & DNS - my free Android networking tools app
Shriram Krishnamoorthy
Greenhorn

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

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41073
    
  43
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
 
Similar Threads
Use Web Service
consume web service
Accessing .NET web service from java
Soap client giving error
Error in client for webservice on websphere 4.0