aspose file tools*
The moose likes Web Services and the fly likes how to set an attribute like SOAPAction in the Header? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to set an attribute like SOAPAction in the Header?" Watch "how to set an attribute like SOAPAction in the Header?" New topic
Author

how to set an attribute like SOAPAction in the Header?

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I did:

[ December 02, 2003: Message edited by: R�stem e Zal ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
If you used javax.xml.rpc.Call for dynamic invocation, you could set the SOAPAction header with
Call#setProperty(Call.SOAPACTION_URI_PROPERTY, "foobar");


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919



Groovy
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I believe the piece of code you posted is operating with the SOAP header, not the HTTP header...
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

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

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
If you could post more of your Java code then maybe we'd be able to point the problem?
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
i make the connection as:
How can I add then the SOAPAction HTTP Header with this soapConnection Object
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
glorias junior
Greenhorn

Joined: Nov 30, 2011
Posts: 1
monis raza
Ranch Hand

Joined: Sep 05, 2011
Posts: 38

glorias junior wrote:


thanks very much GLORIAS ...............u solved my problem
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
mimeHeader.setHeader("SOAPAction", "http://my.organization.org/webservices/WSSERVICE");

Can we mention the SOAP action in the WSDL's location element ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to set an attribute like SOAPAction in the Header?