What would be a good substitute besides beans? Deepal Jayasinghe wrote: > > Hi VinceK ; > > Axis2 does not support 2D array , and hoping add that soon. > > Thanks > Deepal > >>I'm having problem getting the return String[][]. >>I'm using wrapped style and here is my wsdl file. >> >><?xml version="1.0" encoding="UTF-8"?> >><wsdl:definitions >>targetNamespace="http://webservice.udcnet.com/starws/services/transport/bindings" >>xmlns:apachesoap="http://xml.apache.org/xml-soap" >>xmlns:impl="http://webservice.udcnet.com/starws/services/transport/bindings" >>xmlns:intf="http://webservice.udcnet.com/starws/services/transport/bindings" >>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.3 >>Built on Oct 05, 2005 (05:23:37 EDT)--> >> <wsdl:types> >> <schema elementFormDefault="qualified" >>targetNamespace="http://webservice.udcnet.com/starws/services/transport/bindings" >>xmlns="http://www.w3.org/2001/XMLSchema"> >> <element name="getTest"> >> <complexType> >> <sequence> >> <element name="in1" type="xsd:string"/> >> </sequence> >> </complexType> >> </element> >> <element name="getTestResponse"> >> <complexType> >> <sequence> >> <element maxOccurs="unbounded" name="getTestReturn" >>type="impl:ArrayOf_xsd_string"/> >> </sequence> >> </complexType> >> </element> >> <complexType name="ArrayOf_xsd_string"> >> <sequence> >> <element maxOccurs="unbounded" minOccurs="0" name="item" >>type="xsd:string"/> >> </sequence> >> </complexType> >> </schema> >> </wsdl:types> >> >> <wsdl:message name="getTestRequest"> >> >> <wsdl:part element="impl:getTest" name="parameters"/> >> >> </wsdl:message> >> >> <wsdl:message name="getTestResponse"> >> >> <wsdl:part element="impl:getTestResponse" name="parameters"/> >> >> </wsdl:message> >> >> <wsdl:portType name="TestWebService"> >> >> <wsdl:operation name="getTest"> >> >> <wsdl:input message="impl:getTestRequest" name="getTestRequest"/> >> >> <wsdl:output message="impl:getTestResponse" >>name="getTestResponse"/> >> >> </wsdl:operation> >> >> </wsdl:portType> >> >> <wsdl:binding name="TestWebServiceSoapBinding" >>type="impl:TestWebService"> >> >> <wsdlsoap:binding style="document" >>transport="http://schemas.xmlsoap.org/soap/http"/> >> >> <wsdl:operation name="getTest"> >> >> <wsdlsoap:operation soapAction=""/> >> >> <wsdl:input name="getTestRequest"> >> >> <wsdlsoap:body use="literal"/> >> >> </wsdl:input> >> >> <wsdl:output name="getTestResponse"> >> >> <wsdlsoap:body use="literal"/> >> >> </wsdl:output> >> >> </wsdl:operation> >> >> </wsdl:binding> >> >> <wsdl:service name="TestWebServiceService"> >> >> <wsdl:port binding="impl:TestWebServiceSoapBinding" >>name="TestWebService"> >> >> <wsdlsoap:address >>location="http://localhost:8080/starws/services/TestWebService"/> >> >> </wsdl:port> >> >> </wsdl:service> >> >></wsdl:definitions> >> >> >>I generated the code with WSDL2JAVA successfully and ran client and got this >>error : >> >>java.lang.RuntimeException: Unexpected subelement getTestReturn >> >> >>My return soap env is : >> >><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >>xmlns:xsd="http://www.w3.org/2001/XMLSchema" >>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >><soapenv:Body> >> <getTestResponse >>xmlns="http://webservice.udcnet.com/starws/services/transport/bindings"> >> <getTestReturn> >> <getTestReturn> >> World >> </getTestReturn> >> <getTestReturn> >> I am here >> </getTestReturn> >> </getTestReturn> >> </getTestResponse> >></soapenv:Body> >></soapenv:Envelope> >> >>Seems to me the getTestReturn tags do seem a little weird. >>If the server is sending the incorrect soap env what do i need to do to fix >>this? >>Thank you. >> >> >> >> > > -- > Thanks, > Deepal > ................................................................ > "The highest tower is built one brick at a time" > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > >
-- View this message in context: http://www.nabble.com/-Axis2--2D-String-array-return-problems-tf3306010.html#a9198017 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
