Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SAAJ and SOAPAction  RSS feed

 
Darrell Bulloch
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a java app to call the Google webservice using SAAJ. I believe my problem is that the SOAPAction is not set in the HTTP header.
It should be set as SOAPAction: "urn:GoogleSearchAction",
instead it is set as SOAPAction: "".
All the examples I have located describe how to set the endpoint and call it, but don't describe how to set the SOAPAction or the method that you are calling.
Any ideas.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Web Services forum...
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:

[ March 15, 2004: Message edited by: Lasse Koskela ]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
LASSE,

I set it as "SOAPAction", "http://qqq.www.eee/myWEBService"

but in the servlet I get the value as "http://qqq.www.eee/myWEBService", I mean extra 2 " values at the beginning and at the end. The other string based HTTP Headers have no '"' (doble quote). Should I manually throw the "s away or am I doing sth. wrong?

Thanks,
R.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by R�stem-� Zal�:
LASSE,

I set it as "SOAPAction", "http://qqq.www.eee/myWEBService"

but in the servlet I get the value as "http://qqq.www.eee/myWEBService", I mean extra 2 " values at the beginning and at the end. The other string based HTTP Headers have no '"' (doble quote). Should I manually throw the "s away or am I doing sth. wrong?

Thanks,
R.




I think the extra double quotes are fine. If you look at the HTTP POST request you will see

SOAPAction="http://.."
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!