aspose file tools*
The moose likes Web Services and the fly likes Problem in web service client while trying to consume a service exposed on the net Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem in web service client while trying to consume a service exposed on the net" Watch "Problem in web service client while trying to consume a service exposed on the net" New topic
Author

Problem in web service client while trying to consume a service exposed on the net

Prasad Shindikar
Ranch Hand

Joined: Feb 18, 2007
Posts: 114
this is the link for the WSDL file of an exposed web service on the internet.
http://www.freewebs.com/jimmy_cheng/CurrencyExchangeService.wsdl

I have tried to write a java web service client for the same.

However, the code gives an error.
The error stack is as shown below.

I am using Eclipse Europa, JDK 1.5



The code for my client is :




The webservice interface that i defined:


[ October 19, 2008: Message edited by: Balaji Loganathan ]
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
Can you make code more readable?


My Blog
Prasad Shindikar
Ranch Hand

Joined: Feb 18, 2007
Posts: 114
Hopefully this is more readable !

this is the link for the WSDL file of an exposed web service on the internet.
http://www.freewebs.com/jimmy_cheng/CurrencyExchangeService.wsdl

I have tried to write a java web service client for the same.

However, the code gives an error.
The error stack is as shown below.



Client Code :



The interface that I have defined from the wsdl file :

William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
caused by: org.jboss.ws.WSException: Invalid HTTP server response [404] - Not Found


This indicates your request addressing is not getting through to the server side application.

If this was my problem I would start by using SOAPui or TCPMON to capture the exact request text.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in web service client while trying to consume a service exposed on the net