[ http://issues.apache.org/jira/browse/AXIS-2567?page=comments#action_12438616 ] Davanum Srinivas commented on AXIS-2567: ----------------------------------------
try the wrap arrays option on the w2j command line; > Arrays Interop with .NET > ------------------------ > > Key: AXIS-2567 > URL: http://issues.apache.org/jira/browse/AXIS-2567 > Project: Apache Axis > Issue Type: Bug > Components: WSDL processing > Affects Versions: 1.4 > Environment: os=linux > platform=amd64 > jvm=1.5.0_08 > container=tomcat5 > Reporter: Ian > > I submitted this issue to axis-user and was told to create a JIRA, although I > find it hard to believe something so basic is a bug. I'm sure I'm doing > something wrong. > Essentially I am trying to get a SOAP operation to return an array of > objects. Let's just use int for a simple example. In my <wsdl:types>: > <xsd:complexType name="IntArray"> > <xsd:sequence> > <xsd:element maxOccurs="unbounded" name="item" type="xsd:int"/> > </xsd:sequence> > </xsd:complexType> > <xsd:element name="GetIntArrayResponse"> > <xsd:complexType> > <xsd:sequence> > <xsd:element name="wrapper" type="typens:IntArray"/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > What I'm expecting, and what .NET and gSOAP clients seem to be expecting as > well, is this: > <GetIntArrayResponse> > <wrapper> > <item>2</item> > <item>4</item> > <item>6</item> > </wrapper> > </GetIntArrayResponse> > However, I generated a servlet using WSDL2Java, and the output for > GetIntArray looks like: > <GetIntArrayResponse xmlns="http://test.ians"> > <wrapper xsi:type="xsd:int">2</wrapper> > <wrapper xsi:type="xsd:int">4</wrapper> > <wrapper xsi:type="xsd:int">6</wrapper> > </GetIntArrayResponse> > And does not interoperate at all with .NET or gSOAP clients. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]