FYI, for me, the following VBScript Set client = CreateObject("MSSOAP.SoapClient") client.mssoapinit "helloworld.wsdl", "", "", "" MsgBox client.sayHello(Array("hola"))
used with your helloworld.wsdl changed to point to my SOAP service sends an envelope that Apache SOAP can parse, but of course I don't have the service you do, so I get a fault from Apache SOAP. At least this verifies that there is no error serializing and sending the message. Your WSDL shows that sayHello returns a String (not String[]). Is that really the data type returned by the service? Scott Nichol ----- Original Message ----- From: "Fergus O'Dalaigh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 4:28 AM Subject: Re: VB6 client to SOAP service using String Arrays > Oops, sorry about that, I gave you the wrong code. We are actually passing in a String array and NOT a String parameter. > > Scott Nichol <[EMAIL PROTECTED]> wrote: > > >client.sayHello("hola") uses a string parameter, not string array. Your > >VB parameter must be type-compatible with the WSDL type. > > > >Scott Nichol > > > >----- Original Message ----- > >From: "Fergus O'Dalaigh" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Tuesday, November 19, 2002 12:18 PM > >Subject: Re: VB6 client to SOAP service using String Arrays > > > > > >> The error occurs on the invocation of the service (3rd line below). > >> > >> Set client = CreateObject("MSSOAP.SoapClient") > >> client.mssoapinit "helloworld.wsdl", "", "", "" > >> MsgBox client.sayHello("hola") > >> > >> Here is the wsdl file I generated using java2WSDL: > >> > >> <?xml version="1.0" encoding="UTF-8"?> > >> <wsdl:definitions targetNamespace="urn:Greeter" > >xmlns="http://schemas.xmlsoap.org/wsdl/" > >xmlns:apachesoap="http://xml.apache.org/xml-soap" > >xmlns:impl="urn:Greeter" xmlns:intf="urn:Greeter" > >xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > >xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > >xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" > >xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > >> <wsdl:types> > >> <schema targetNamespace="urn:Greeter" > >xmlns="http://www.w3.org/2001/XMLSchema"> > >> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> > >> <complexType name="ArrayOf_xsd_string"> > >> <complexContent> > >> <restriction base="soapenc:Array"> > >> <attribute ref="soapenc:arrayType" > >wsdl:arrayType="xsd:string[]"/> > >> </restriction> > >> </complexContent> > >> </complexType> > >> <element name="ArrayOf_xsd_string" nillable="true" > >type="impl:ArrayOf_xsd_string"/> > >> </schema> > >> </wsdl:types> > >> <wsdl:message name="sayGoodbyeRequest"> > >> <wsdl:part name="in0" type="xsd:string"/> > >> </wsdl:message> > >> <wsdl:message name="sayHelloResponse"> > >> <wsdl:part name="sayHelloReturn" type="xsd:string"/> > >> </wsdl:message> > >> <wsdl:message name="sayHelloRequest"> > >> <wsdl:part name="in0" type="intf:ArrayOf_xsd_string"/> > >> </wsdl:message> > >> <wsdl:message name="sayGoodbyeResponse"> > >> <wsdl:part name="sayGoodbyeReturn" type="xsd:string"/> > >> </wsdl:message> > >> <wsdl:portType name="HelloWorld"> > >> <wsdl:operation name="sayHello" parameterOrder="in0"> > >> <wsdl:input message="intf:sayHelloRequest" > >name="sayHelloRequest"/> > >> <wsdl:output message="intf:sayHelloResponse" > >name="sayHelloResponse"/> > >> </wsdl:operation> > >> <wsdl:operation name="sayGoodbye" parameterOrder="in0"> > >> <wsdl:input message="intf:sayGoodbyeRequest" > >name="sayGoodbyeRequest"/> > >> <wsdl:output message="intf:sayGoodbyeResponse" > >name="sayGoodbyeResponse"/> > >> </wsdl:operation> > >> </wsdl:portType> > >> <wsdl:binding name="rpcrouterSoapBinding" type="intf:HelloWorld"> > >> <wsdlsoap:binding style="rpc" > >transport="http://schemas.xmlsoap.org/soap/http"/> > >> <wsdl:operation name="sayHello"> > >> <wsdlsoap:operation soapAction=""/> > >> <wsdl:input name="sayHelloRequest"> > >> <wsdlsoap:body > >encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > >namespace="urn:Greeter" use="encoded"/> > >> </wsdl:input> > >> <wsdl:output name="sayHelloResponse"> > >> <wsdlsoap:body > >encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > >namespace="urn:Greeter" use="encoded"/> > >> </wsdl:output> > >> </wsdl:operation> > >> <wsdl:operation name="sayGoodbye"> > >> <wsdlsoap:operation soapAction=""/> > >> <wsdl:input name="sayGoodbyeRequest"> > >> <wsdlsoap:body > >encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > >namespace="urn:Greeter" use="encoded"/> > >> </wsdl:input> > >> <wsdl:output name="sayGoodbyeResponse"> > >> <wsdlsoap:body > >encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > >namespace="urn:Greeter" use="encoded"/> > >> </wsdl:output> > >> </wsdl:operation> > >> </wsdl:binding> > >> <wsdl:service name="HelloWorldService"> > >> <wsdl:port binding="intf:rpcrouterSoapBinding" name="rpcrouter"> > >> <wsdlsoap:address > >location="http://localhost/NASApp/soap/servlet/rpcrouter"/> > >> </wsdl:port> > >> </wsdl:service> > >> </wsdl:definitions> > >> > >> Fergus > >> > >> Scott Nichol <[EMAIL PROTECTED]> wrote: > >> > >> >On what line of VB code does the error occur? Can you post > >> >service2.wsdl to this list? > >> > > >> >Scott Nichol > >> > > >> >----- Original Message ----- > >> >From: "Fergus O'Dalaigh" <[EMAIL PROTECTED]> > >> >To: <[EMAIL PROTECTED]> > >> >Sent: Tuesday, November 19, 2002 11:53 AM > >> >Subject: VB6 client to SOAP service using String Arrays > >> > > >> > > >> >> Hi SOAPers, > >> >> > >> >> I have a SOAP service that accepts a String array as a parameter. > >> >> I've written an java client to access it no problemo using... > >> >> > >> >> ... > >> >> params.addElement(new Parameter("names", String[].class, names, > >> >null)); > >> >> ... > >> >> > >> >> Now I'm trying to write a Visual Basic 6 client to access it but I > >get > >> >an > >> >> 'Application-Defined error or Object-Defined error'. > >> >> > >> >> using... > >> >> > >> >> Set client = CreateObject("MSSOAP.SoapClient") > >> >> client.mssoapinit "service2.wsdl", "", "", "" > >> >> > >> >> We have managed to get the VB client to access the service using > >> >String parameters, however. > >> >> > >> >> If anyone has a cut and paste code example, that would be perfect. > >> >> > >> >> Fergus > >> >> > >> >> __________________________________________________________________ > >> >> The NEW Netscape 7.0 browser is now available. Upgrade now! > >> >http://channels.netscape.com/ns/browsers/download.jsp > >> >> > >> >> Get your own FREE, personal Netscape Mail account today at > >> >http://webmail.netscape.com/ > >> >> > >> >> -- > >> >> To unsubscribe, e-mail: > >> ><mailto:[EMAIL PROTECTED]> > >> >> For additional commands, e-mail: > >> ><mailto:[EMAIL PROTECTED]> > >> >> > >> >> > >> > > >> > > >> >-- > >> >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > >> >For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > >> > > >> > > >> > >> __________________________________________________________________ > >> The NEW Netscape 7.0 browser is now available. Upgrade now! > >http://channels.netscape.com/ns/browsers/download.jsp > >> > >> Get your own FREE, personal Netscape Mail account today at > >http://webmail.netscape.com/ > >> > >> -- > >> To unsubscribe, e-mail: > ><mailto:[EMAIL PROTECTED]> > >> For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > >> > >> > > > > > >-- > >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > > > __________________________________________________________________ > The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp > > Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>