Hi James,

yes, java2wsdl and wsdl2java work fine, however a wrapper type (ArrayOfXxx) for the array is created.

My method is:

Note[] findNotesByCooperationId(int cooperationId)

and my wsdl generated by Java2WSDL is:

...

<schema targetNamespace="http://business.annotation.infravida.cenas";
xmlns="http://www.w3.org/2001/XMLSchema";>
<import namespace="http://ws.communication.annotation.infravida.cenas"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="Note">
<sequence>
<element name="author" nillable="true" type="xsd:string"/>
<element name="cooperationId" type="xsd:int"/>
<element name="date" nillable="true" type="xsd:dateTime"/>
<element name="note" nillable="true" type="xsd:string"/>
<element name="id" type="xsd:int"/>
</sequence>
</complexType>
</schema>
<schema
targetNamespace="http://ws.communication.annotation.infravida.cenas";
xmlns="http://www.w3.org/2001/XMLSchema";>
<import namespace="http://business.annotation.infravida.cenas"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_tns2_Note">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns2:Note[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
</wsdl:types>


<wsdl:message name="findNotesByCooperationRequest">
<wsdl:part name="in0" type="xsd:int"/>
</wsdl:message>


<wsdl:message name="findNotesByCooperationResponse">
<wsdl:part name="findNotesByCooperationReturn" type="impl:ArrayOf_tns2_Note"/>
</wsdl:message>


...

Is it Correct? Is my wsdl WS-I compliant?


Thanks,
Ana Carolina.


James Black writes:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


[EMAIL PROTECTED] wrote:
| Hi Dino,
| Which the alterations that I would have to make in your Arrays2.wsdl
| file to use RPC/Encoded?
| For exemple, how would be this <message> tag?
| <message name="SendArrayOfStringSoapIn">
| <part name="parameters" element="s0:SendArrayOfString" />
| </message>
| Because when RPC/Encoed is used, <part> tag would have to use <type> and
| not <element>.
| Thanks,
| Ana Carolina


~ As a general rule, I have found that if you are using rpc/enc that
java2wsdl, then wsdl2java works fine, generally.


- --
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org


iD8DBQFCN1RqikQgpVn8xrARAuViAJ0R1O0mcgM3EmBwIFd+AMkvU+7DfQCcDC9o
qbYwabsG4DeO9JhXMxZ9fCo=
=8BtM
-----END PGP SIGNATURE-----



Reply via email to