You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dino Chiesa <di...@microsoft.com> on 2005/03/11 22:31:32 UTC
RE: Help about Array and WSDL
Fwd'ing to axis-user.
-----Original Message-----
From: Ana Carolina Chaves Machado [mailto:accm@gonzaga.cesar.org.br]
Sent: Friday, March 11, 2005 4:02 PM
To: Dino Chiesa
Subject: Help about Array and WSDL
Dear Dino,
I'm not expert em WSDL e I read some mail that you sent for axis list
about wsdl and array. Can you help me?
I have the method
Note[] findNotesByCooperationId(int cooperationId)
and I don't know as to do my method return bare array in the WSDL. A
Wrapped class ( ArrayOf_tns2_Note) was created when I used Java2WSDL.
My requirement is a WS-I compliant. What is the better solution?
My wsdl is attachement.
Thanks by your attention,
Ana Carolina.
MY WSDL
--------------------
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://ws.communication.annotation.infravida.cenas"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://ws.communication.annotation.infravida.cenas"
xmlns:intf="http://ws.communication.annotation.infravida.cenas"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns2="http://business.annotation.infravida.cenas"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2RC2 Built on Nov 16, 2004
(12:19:44 EST)--> <wsdl:types> <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="addNoteRequest">
<wsdl:part name="in0" type="tns2:Note"/>
</wsdl:message>
<wsdl:message name="findNotesByCooperationRequest">
<wsdl:part name="in0" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="addNoteResponse">
</wsdl:message>
<wsdl:message name="findNotesByCooperationResponse">
<wsdl:part name="findNotesByCooperationReturn"
type="impl:ArrayOf_tns2_Note"/>
</wsdl:message>
<wsdl:portType name="IAnnotationService">
<wsdl:operation name="findNotesByCooperation" parameterOrder="in0">
<wsdl:input message="impl:findNotesByCooperationRequest"
name="findNotesByCooperationRequest"/>
<wsdl:output message="impl:findNotesByCooperationResponse"
name="findNotesByCooperationResponse"/>
</wsdl:operation>
<wsdl:operation name="addNote" parameterOrder="in0">
<wsdl:input message="impl:addNoteRequest"
name="addNoteRequest"/>
<wsdl:output message="impl:addNoteResponse"
name="addNoteResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="AnnotationServiceSoapBinding"
type="impl:IAnnotationService">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="findNotesByCooperation">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="findNotesByCooperationRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://ws.communication.annotation.infravida.cenas"
use="encoded"/>
</wsdl:input>
<wsdl:output name="findNotesByCooperationResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://ws.communication.annotation.infravida.cenas"
use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addNote">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="addNoteRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://ws.communication.annotation.infravida.cenas"
use="encoded"/>
</wsdl:input>
<wsdl:output name="addNoteResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://ws.communication.annotation.infravida.cenas"
use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="AnnotationService">
<wsdl:port binding="impl:AnnotationServiceSoapBinding"
name="AnnotationService">
<wsdlsoap:address
location="http://localhost:8080/annotation/services/AnnotationService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>