• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Axis 1.4 webservice stub ignores SEND_TYPE_ATTR attribute

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Axis 4?
 
Annu Vinayak
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's no such version.
 
Annu Vinayak
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I meant Axis 1.4. Apologize for my assumption
 
Annu Vinayak
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic