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 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 Murach's Java Servlets and JSP this week in the Servlets 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: 12756
    
    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
 
jQuery in Action, 2nd edition
 
subject: Problem in web service client while trying to consume a service exposed on the net
 
Similar Threads
"setProperty must be overridden by all subclasses of SOAPMessage" error
conflict Jboss+WebLogic web service
Exception: java.rmi.RemoteException: Call invocation failed;
Problem in web service client while trying to consume a service exposed on the net
java.lang.reflect.UndeclaredThrowableException in JBOSS with EJB 3 as a web service