Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Prasad Shindikar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you make code more readable?
 
Prasad Shindikar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic