axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Geraskyn" <maxim...@gmail.com>
Subject String array as parameter. Null is not passed
Date Thu, 25 Oct 2007 10:42:48 GMT
Hi all,

I got the following problem:

-----------------------------------
AXIS Version:
Axis 1.4 Apr 22, 2006

-----------------------------------
Code:
public java.lang.String[] getStrings(java.lang.String[] arg) throws
java.rmi.RemoteException;

-----------------------------------
Schema ( document wrapped style ) :
      <s:element name="getStrings">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="arg"
type="tns:ArrayOfString" />
          </s:sequence>
        </s:complexType>
      </s:element>
...
      <s:complexType name="ArrayOfString">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="string"
nillable="true" type="s:string" />
        </s:sequence>
      </s:complexType>

-----------------------------------
Call
        String[] arg = new String[] { "Str1", null, "Str3" };
        String res[] = ff.getStrings(arg);
        assertEquals(null, res[1]);

-----------------------------------
Data
<getStrings xmlns="http://triniforce.com/soap/sample"><arg><string>Str1</string><string>Str3</string></arg></getStrings>


===========================
Expected data:
<arg><string>Str1</string><string xsi:null = "true"
/><string>Str3</string></arg>


So the problem is that null is not passed, while I think It should.
What am I doing wrong ?

Maxim

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message