Hi,
I added
_call.setProperty(javax.xml.rpc.Call.SOAPACTION_USE_PROPERTY,
Boolean.FALSE)
in the generated stub and it is still sending SOAPAction: ""
using the stub object I can't add as it is throwing exception. Using the
stub if you add any property which has java or javax , exeption is thrown
Here is the code which throws from stub.java
***************
else if (name.startsWith("java.") || name.startsWith("javax.")) {
throw new JAXRPCException(
Messages.getMessage("badProp05", name));
}
else {
********************************************
BTW iam using Axis 1.0
Haneef
-----Original Message-----
From: Tom Jordahl [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 11:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: How to switch off SOAPAction?
See the JAX-RPC specification, section 8.2.4.2 and use the Call propery
"javax.xml.rpc.soap.http.soapaction.use". Set it to a Boolean(false).
If you are using WSDL2Java stubs, you should be able to set this on the Stub
object using the _setProperty method.
--
Tom Jordahl
Macromedia Server Development
-----Original Message-----
From: ALI,HANEEF (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:02 PM
To: '[EMAIL PROTECTED]'
Subject: How to switch off SOAPAction?
Hi,
Iam using stubs generated by WSDL2Java to talk with a .NET webservice. Axis
client is sending the HTTPHeader SOAPAction: "", and .NET complains that it
is not able to recognize SOAPAction. Is there any way I can switch of
SOAPAction field. In the generated stub there is no method which sets
SOAPAction. BTW it will be helpul if I can swithch of the SOAPAction header
without tweeking the stubs generated.
Haneef