I tried every way I could think of to get rid of the SOAPAction so that my .NET service wouldn't complain about recognizing it. I t never worked, but I was able to get it running by just "going with the flow" and setting it (manually) to what the .NET service expected. It seems to me that it still had trouble (.NET that is) with the "http://" portion of the SOAP action, I need to change what .NET was expecting by adding: [WebService(Name="aWebService", Namespace="whatever")] to the top of the .NET code and "whatever/<my called method>" as the soap action on my call. also I specifically set each parameter of my call(both in and out parameters).
There might be a way to use a "proper" soap action(with "http://"), but I couldn't find it. Even when the SOAP action looked right(using SOAP Monitor) .NET was still complaining, but removing the "http://" seemed to work. Davanum Srinivas <[EMAIL PROTECTED]> on 03/28/2003 04:43:59 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: RE: How to switch off SOAPAction? PLEASE switch to latest nightly and open a bug report if you still see the problem. Thanks, dims --- "ALI,HANEEF (HP-Cupertino,ex1)" <[EMAIL PROTECTED]> wrote: > 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 ===== Davanum Srinivas - http://webservices.apache.org/~dims/ __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
