• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Getting Bad Response from Web service

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm trying to post to the web service http://www.webservicex.net/CurrencyConvertor.asmx?WSDL using SOAP.

My java program generates the following XML :



But I get the following response:



Can sum1 tell me wats wrong?? A detailed description of the service can be found here

Any sorta help wud be gr8ly appreciated.

Thanx
[ December 26, 2005: Message edited by: Mamu Jan ]
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What value is in your html request for the header SOAPAction?

The link you provided showed an example with the text below

SOAPAction: "http://www.webserviceX.NET/ConversionRate"

Maybe you should do same.
 
Mamu Jan
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jesus Angeles:
What value is in your html request for the header SOAPAction?

The link you provided showed an example with the text below

SOAPAction: "http://www.webserviceX.NET/ConversionRate"

Maybe you should do same.



When I used the above link I get an HTTP Error 404. Try opening the link in IE you'll get the same error.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're not supposed to access that URL, you should use it as value of the SOAPAction HTTP header as was suggested.
 
Mamu Jan
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:
You're not supposed to access that URL, you should use it as value of the SOAPAction HTTP header as was suggested.



Plz can u show me how I can set a value for the SOAPAction HTTP header. I've never heard of SOAPAction b4

Thanx
 
Mamu Jan
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the XML Message I need to generate :



and this is my code



I cudnt find any error in the code ?!! Can sum1 help me !
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can set HTTP headers like so:

MimeHeaders hd = message.getMimeHeaders();
hd.addHeader("SOAPAction", "http://www.webserviceX.NET/ConversionRate");
[ December 29, 2005: Message edited by: Ulf Dittmer ]
 
Mamu Jan
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx every1 ! My program is working now !
 
We don't have time for this. We've gotta save the moon! Or check this out:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic