• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set an attribute like SOAPAction in the Header?

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did:

[ December 02, 2003: Message edited by: R�stem e Zal ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you used javax.xml.rpc.Call for dynamic invocation, you could set the SOAPAction header with
Call#setProperty(Call.SOAPACTION_URI_PROPERTY, "foobar");
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the piece of code you posted is operating with the SOAP header, not the HTTP header...
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:
I believe the piece of code you posted is operating with the SOAP header, not the HTTP header...

yes
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I have to create is this::
request:

response:

and I am getting, with my current code:

[ December 02, 2003: Message edited by: R�stem e Zal ]
[ December 02, 2003: Message edited by: R�stem e Zal ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you could post more of your Java code then maybe we'd be able to point the problem?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i make the connection as:
How can I add then the SOAPAction HTTP Header with this soapConnection Object
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
glorias junior
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
monis raza
Ranch Hand
Posts: 38
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
glorias junior wrote:


thanks very much GLORIAS ...............u solved my problem
 
kri shan
Ranch Hand
Posts: 1460
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mimeHeader.setHeader("SOAPAction", "http://my.organization.org/webservices/WSSERVICE");

Can we mention the SOAP action in the WSDL's location element ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic