This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Services and the fly likes Axis 1.4 webservice stub ignores SEND_TYPE_ATTR attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Axis 1.4 webservice stub ignores SEND_TYPE_ATTR attribute" Watch "Axis 1.4 webservice stub ignores SEND_TYPE_ATTR attribute" New topic
Author

Axis 1.4 webservice stub ignores SEND_TYPE_ATTR attribute

Annu Vinayak
Greenhorn

Joined: Jul 17, 2009
Posts: 19
Hello All,

I am using an Axis 1.4 client for calling a webservice. The request generated by the client consists of an attribute xsi:type as highlighted below. The webservice is rejecting this request. Is there any way I can remove this. Below are the different thing I have tried already as per articles on the internet (but none has worked till now).

1. Made service type as wrapped
<service name="/com.web/ManageThService" provider="java:RPC" style="wrapped">
Article: http://markmail.org/message/zbjt4io4h2vtzne2#query:+page:1+mid:47comeasp4ch5xi6+state:results

2. Moved call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR.. above _call.setOperation
Article: http://web.archiveorange.com/archive/v/R4VLPtAh7LsRIVXwtzAq

3. Added <parameter name="sendXsiTypes" value="false"/> to the WSDD under <globalConfiguration >

This seems to be a very old Axis bug which should have been resolved by now, but even after browsing around 50 articles I did not find a working solution. Any help would be greatly appreciated!

Soap Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
</soapenv:Header>
<soapenv:Body>
<deleteTh xmlns="http://manage.com">
<requestContext xmlns="">
<languageId>EN</languageId>
</requestContext>
<geaendertAm xsi:type="xsd:dateTime" xmlns="">2011-06-21T11:04:50.906Z</geaendertAm>
</deleteTh>
</soapenv:Body>
</soapenv:Envelope>
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35443
    
    9
Axis 4?


Android appsImageJ pluginsJava web charts
Annu Vinayak
Greenhorn

Joined: Jul 17, 2009
Posts: 19
Yes
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35443
    
    9
There's no such version.
Annu Vinayak
Greenhorn

Joined: Jul 17, 2009
Posts: 19
I meant Axis 1.4. Apologize for my assumption
Annu Vinayak
Greenhorn

Joined: Jul 17, 2009
Posts: 19
In the meantime, also tried the following properties in ServicePortBindingStub:

_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);

Still no success

Anyone..? Any suggestion/hint on this?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Axis 1.4 webservice stub ignores SEND_TYPE_ATTR attribute
 
Similar Threads
JAX-RPC and Calendar question
Invoke .NET Web Service using Java/Axis passing SoapHeader
Namespace in body element how to define in WSDL
Namespace to method parameters in Axis 1.4
Webservices with Axis 1.3