axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nagesh Bhagwat (JIRA)" <>
Subject [jira] Created: (AXIS-2804) Axis 1.4 library method return result with are incompatible with .net
Date Fri, 04 Sep 2009 04:56:57 GMT
Axis 1.4 library method return result with are incompatible with .net

                 Key: AXIS-2804
             Project: Axis
          Issue Type: Bug
    Affects Versions: 1.4
         Environment: All the Platform
            Reporter: Nagesh Bhagwat
            Priority: Blocker

Currently IBM Tivoli Directory Integrator v6.1.1 ships the Axis 1.4 Library.
We have an web Service, One of web service method requires "String of Array" as an Argument.

We get the parameter using following API

ParameterDesc param = (ParameterDesc) parameters.get(i);

Param = 

name:       userNames
typeEntry:  null
mode:       IN
position:   3
isReturn:   false
typeQName:  {}ArrayOf_xsd_string
javaType:   null
inHeader:   false
outHeader:  false

When we pass this parameter to Axis method for setting the Parameter description as follow


rpcParam Value before execution :-

rpcParam = <userNames soapenc:arrayType="xsd:string[4]" xsi:type="soapenc:Array" xmlns:xsd=""
xmlns:soapenc="" xmlns:xsi=""><userNames
xsi:type="xsd:string">s1</userNames><userNames xsi:type="xsd:string">s2</userNames><userNames
xsi:type="xsd:string">s3</userNames><userNames xsi:type="xsd:string">s4</userNames></userNames>

rpcParam Value After execution:-

rpcParam = <userNames soapenc:arrayType="ns1:ArrayOf_xsd_string[4]" xsi:type="soapenc:Array"
xmlns:ns1="" xmlns:soapenc=""
xmlns:xsi=""><userNames xsi:type="xsd:string"
xmlns:xsd="">s1</userNames><userNames xsi:type="xsd:string"
xmlns:xsd="">s2</userNames><userNames xsi:type="xsd:string"
xmlns:xsd="">s3</userNames><userNames xsi:type="xsd:string"

So the Above API which is generated SOAP Envelop in this format, which not not compatible
with Web Service that we are using it.

Resultant SOAP Request generated by TDI 6.1.1 is 

Request :-

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv=""
xmlns:xsd="" xmlns:xsi="">
  <ns1:assignUsers soapenv:encodingStyle="" xmlns:ns1="">
   <adminUserName xsi:type="xsd:string">tsh8069</adminUserName>
   <adminPassword xsi:type="xsd:string">opsware</adminPassword>
   <roleName xsi:type="xsd:string">ITIM Test Role</roleName>
   <userNames soapenc:arrayType="ns1:ArrayOf_xsd_string[1]" xsi:type="soapenc:Array" xmlns:soapenc="">
    <userNames xsi:type="xsd:string">traceyh</userNames>

Response :-

<soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
         <faultstring>No such operation 'assignUsers'</faultstring>

Where are in case of IBM Tivoli Directory Integrator 6.0, which ships Axis 1.1 Library with

API - rpcParam.setParamDesc(param);

This doesn't change the SOAP Envelop format after the execution of this API

Resultant SOAP generation in case of Axis 1.1 is 

Request :-

<soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
  <ns1:assignUsers xmlns:ns1="">
   <adminUserName xsi:type="xsd:string">tsh8069</adminUserName>
   <adminPassword xsi:type="xsd:string">opsware</adminPassword>
   <roleName xsi:type="xsd:string">ITIM Test Role</roleName>
   <userNames xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]" xmlns:soapenc="">

<soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
   <soapenv:Body soapenv:encodingStyle="">
      <ns1:assignUsersResponse xmlns:ns1="">
         <assignUsersResponse xsi:type="xsd:string">&lt;ITIM Test Role> was assigned
to users [traceyh1]</assignUsersResponse>

>From this its clear that, axis 1.1 does work fine but axis 1.4 has some incompatibility
issue with .net specially when we are passing String Array as argument to web service.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message