On Wed, Mar 08, 2006 at 09:39:07AM -0600, Kiran Kumar wrote:
> Hi,
> 
> As per the definition of type'ArrayHB24ILISTA1' is not 'Array'.. You have to 
> define array of your complex type (ArrayHB24ILISTA1).. It would be something 
> like this :
> 
>       <xsd:complexType name="LISTA1Type">
>               <xsd:sequence>
>                       <xsd:element name="item" 
> type="transactionHB24:ArrayHB24ILISTA1" maxOccurs="unbounded"/>
>               </xsd:sequence>
>       </xsd:complexType>
> 
>        <xsd:element name="LISTA1" type="LISTA1Type" />
> 
> 
> Name of the your complex type (ArrayHB24ILISTA1) is confusing..Its not an 
> array.. its just a complex type.
> 

Reopening this subject:

I followed your suggestion. My wsdl now reads:

      <complexType name="ArrayHB24ILISTA1Stub">
        <sequence>
          <element name="item" nillable="true" maxOccurs="unbounded" 
type="transactionHB24:ArrayHB24ILISTA1" />
        </sequence>
      </complexType>
      <complexType name="RequestBeanHB24">
        <sequence>
          <element name="cancelTrxId" nillable="true" type="string" />
          <element name="LISTA1" nillable="true" 
type="transactionHB24:ArrayHB24ILISTA1Stub" />
        </sequence>
      </complexType>

But the output is still:

      <arg0 xmlns:ns2="java:com.altitude.tp.transactions.transactionHB24" 
xsi:type="ns2:RequestBeanHB24">
        <cancelTrxId xsi:type="xsd:string" xsi:nil="true"/>
        <LISTA1 xsi:type="ns2:ArrayHB24ILISTA1">
          <ACCAO xsi:type="xsd:string" xsi:nil="true"/>
          <CTCANAL_L xsi:type="xsd:string" xsi:nil="true"/>
        </LISTA1>
        <LISTA1 xsi:type="ns2:ArrayHB24ILISTA1">
          <ACCAO xsi:type="xsd:string" xsi:nil="true"/>
          <CTCANAL_L xsi:type="xsd:string" xsi:nil="true"/>
        </LISTA1>
        <codAmbiente xsi:type="xsd:string" xsi:nil="true"/>
        <autorizacoes xsi:type="xsd:string" xsi:nil="true"/>
      </arg0>


The other side (a desperately outdated weblogic...) requires a form like:

      <arg0 xmlns:ns2="java:com.altitude.tp.transactions.transactionHB24" 
xsi:type="ns2:RequestBeanHB24">
        <cancelTrxId xsi:type="xsd:string" xsi:nil="true"/>
        <LISTA1 xsi:type="ns2:ArrayHB24ILISTA1[2]">
            <item xsi:type="ns2:ArrayHB24ILISTA1">
              <ACCAO xsi:type="xsd:string" xsi:nil="true"/>
              <CTCANAL_L xsi:type="xsd:string" xsi:nil="true"/>
            </item>
            <item xsi:type="ns2:ArrayHB24ILISTA1">
              <ACCAO xsi:type="xsd:string" xsi:nil="true"/>
              <CTCANAL_L xsi:type="xsd:string" xsi:nil="true"/>
            </item>
        </LISTA1>
        <codAmbiente xsi:type="xsd:string" xsi:nil="true"/>
        <autorizacoes xsi:type="xsd:string" xsi:nil="true"/>
      </arg0>


How can I force axis to send the request in this form? (even if I have to
change the wsdl).

Thanks

-- 
Pedro Alves
[EMAIL PROTECTED]

Reply via email to