Re: Is string[] supported in WSIF?
Nirmal Mukhi <nmukhi-r/[email protected]> Wed, 16 Feb 2005 12:24:55 -0500
| Newsgroups | gmane.comp.apache.webservices.wsif.devel,gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <OF9B40BA34.8124EC87-ON85256FAA.005F83E8-85256FAA.005FAA4E@us.ibm.com> |
Hello, The DynamicInvoker has limited schema support, I don't think string arrays are supported. You can look at the DynamicInvoker code (available at http://cvs.apache.org/viewcvs.cgi/ws-wsif/java/samples/clients/DynamicInvoker.java?rev=1.12&view=markup) and try modifying it suitably if you like. If you generate a stub from the WSDL though, it should work (WSIF does support string arrays, just not via the dynamic invoker). Thanks, Nirmal. [email protected] 02/16/2005 10:21 AM Please respond to wsif-dev To: [email protected] cc: Subject: Is string[] supported in WSIF? Hello: First of all I must said that I am not a developer so perhaps my question is something obvious but I am not able to see the solution for this problem. I am triying to use WSIF to attack a webservice but I am getting this error ------------------------------------ java clients.DynamicInvoker file.wsdl operation1 123 123 123 123 Reading WSDL document from 'file.wsdl' Preparing WSIF dynamic invocation - WSIF0006W: Se han encontrado varios WSIFProvider que soportan el mismo URI de espacio de nombres 'http://schemas.xmlsoap.org/wsdl/soap/'. Se ha encontrado ('o rg.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvider_ApacheAxis, org.apa che.wsif.providers.soap.apachesoap.WSIFDynamicProvider_ApacheSOAP') - WSIF0007I: Utilizando WSIFProvider 'org.apache.wsif.providers.soap.apacheaxis. WSIFDynamicProvider_ApacheAxis' para namespaceURI 'http://schemas.xmlsoap.org/ws dl/soap/' Exception in thread "main" java.lang.RuntimeException: part type {urn:webservice s.hp.com}ArrayOf_xsd_string not supported in this sample at clients.DynamicInvoker.retrieveSignature(Unknown Source) at clients.DynamicInvoker.invokeMethod(Unknown Source) at clients.DynamicInvoker.main(Unknown Source) --------------------- File.wsdl ------------------------------------ <?xml version="1.0" encoding="utf-8" ?> - <wsdl:definitions targetNamespace="urn:webservices.hp.com" xmlns=" http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:webservices.hp.com" xmlns:intf="urn:webservices.hp.com" 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 xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:webservices.hp.com"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> <element name="ArrayOf_xsd_string" nillable="true" type="impl:ArrayOf_xsd_string" /> - <complexType name="ArrayOf_xsd_string"> - <complexContent> - <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" /> </restriction> </complexContent> </complexType> </schema> ....... - <wsdl:message name="closeSessionRequest"> <wsdl:part name="gtmSID" type="xsd:string" /> <wsdl:part name="sequenceNumber" type="xsd:string" /> <wsdl:part name="backendID" type="xsd:string" /> <wsdl:part name="retryFlag" type="xsd:string" /> </wsdl:message> .................. - <wsdl:operation name="operation1"> <wsdlsoap:operation soapAction="" /> - <wsdl:input name="closeSessionRequest"> <wsdlsoap:body use="encoded" encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:webservices.hp.com" /> </wsdl:input> - <wsdl:output name="closeSessionResponse"> <wsdlsoap:body use="encoded" encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:webservices.hp.com" /> </wsdl:output> </wsdl:operation> ............. ------------------------------------------ Is there a problem with String arrays in WSIF or simply I am making a mistake when I use it? Regards, Mario. San Valentín se acerca, encuentra pareja y disfruta del día de los enamorados. Juega ahora a la máquina del amor en Tiscali Amor y Amistad y gana ¡7 días gratis! http://match.tiscali.es/match/shared/Valentines2005/SPEURO/TISCALIES/TISCALIES.htm