Hi All, I would like to write a web service with a String parameter and with String[] return value. I don't know how should I write wsdl documents for the service, how can I define array in it.
My wsdl-interface docoment is: ********************************************* <?xml version="1.0" encoding="UTF-8"?> <definitions name="Echo_Service" targetNamespace="http://www.echoservice.com/Echo-interface" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.echoservice.com/Echo" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <types> <xsd:schema targetNamespace="http://www.echoservice.com/Echo" xmlns="http://www.w3.org/1999/XMLSchema/"> </xsd:schema> </types> <message name="InechomessageRequest"> <part name="meth1_inType1" type="xsd:string"/> </message> <message name="OutechomessageResponse"> <part name="meth1_outType" type="java.lang.String"/> ************* I would like to use String[] here! </message> <portType name="Echo_Service"> <operation name="echomessage"> <input message="InechomessageRequest"/> <output message="OutechomessageResponse"/> </operation> </portType> <binding name="Echo_ServiceBinding" type="Echo_Service"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="echomessage"> <soap:operation soapAction="urn:echo-service"/> <input> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:echo-service" use="encoded"/> </input> <output> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:echo-service" use="encoded"/> </output> </operation> </binding> </definitions> ******************************************** Any help is appreciated, thanks, Csilla