Hi again, What I'm trying to do is to invoke a webservice using the WSIF framework. I got some of the samples to work, but they don't really help me in building one myself. Everytime I try to execute my own client, or invoke the webservice with the DynamicInvoker, I get an IndexOutOfBoundsException.
I don't know what is causing this, but I do know which code line: WSIFPort port = service.getPort(); Included the wsdl as attachment. Kind regards, Dylan Honorez, [EMAIL PROTECTED] -----Original Message----- From: Aleksander Slominski [mailto:[EMAIL PROTECTED] Sent: donderdag 22 juli 2004 8:42 To: [EMAIL PROTECTED] Subject: Re: WSIF Client what is in WSDL file? thanks, alek Honorez Dylan wrote: >Hi, > >I keep getting an IndexOutOfBoundsException. I have no idea what the >cause is of this. Included the DOS-command I execute and the stacktrace. >Tomcat shows nothing... > >C:\Apache\wsif-2.0>java -cp >%CLASSPATH%;c:\Apache\wsif-2.0\build\samples;c:\Apac >he\wsif-2.0\WEB-INF\classes;C:\Apache\wsif-2.0\build\lib\wsif.jar;C:\Ap a >che\wsif >-2.0\build\lib\wsif-j2c.jar;C:\Apache\wsif-2.0\lib\ant-1_5_1.jar;C:\Apa c >he\wsif- >2.0\lib\apache_soap-2_3_1.jar;C:\Apache\wsif-2.0\lib\axis-1_0-ant.jar;C : >\Apache\ >wsif-2.0\lib\axis-1_0.jar;C:\Apache\wsif-2.0\lib\commons-discovery.jar; C >:\Apache >\wsif-2.0\lib\commons-logging.jar;C:\Apache\wsif-2.0\lib\dir.txt;C:\Apa c >he\wsif- >2.0\lib\jaxrpc-1_1.jar;C:\Apache\wsif-2.0\lib\junit-3_8_1.jar;C:\Apache \ >wsif-2.0 >\lib\log4j-1_2_4.jar;C:\Apache\wsif-2.0\lib\optional-1_5_1.jar;C:\Apach e >\wsif-2. >0\lib\qname-from-wsdl4j-20021124.jar;C:\Apache\wsif-2.0\lib\saaj-1_1.ja r >;C:\Apac >he\wsif-2.0\lib\servlet-2_2.jar;C:\Apache\wsif-2.0\lib\soaprmi-1_1.jar; C >:\Apache >\wsif-2.0\lib\wsdl4j-20021124.jar;C:\Apache\wsif-2.0\lib\xercesImpl-2_2 _ >1.jar;C: >\Apache\wsif-2.0\lib\xmlParserAPIs-2_2_1.jar clients.DynamicInvoker >"http://10.1 >.6.57:8080/test/wstest?WSDL" helloTest >Reading WSDL document from 'http://10.1.6.57:8080/test/wstest?WSDL' >Preparing WSIF dynamic invocation >- WSIF0006W: Multiple WSIFProvider found supporting the same namespace >URI 'http >://schemas.xmlsoap.org/wsdl/soap/'. Found >('org.apache.wsif.providers.soap.apach >eaxis.WSIFDynamicProvider_ApacheAxis, >org.apache.wsif.providers.soap.apachesoap. >WSIFDynamicProvider_ApacheSOAP') >- WSIF0007I: Using WSIFProvider >'org.apache.wsif.providers.soap.apacheaxis.WSIFD >ynamicProvider_ApacheAxis' for namespaceURI >'http://schemas.xmlsoap.org/wsdl/soa >p/' >Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: >0, Size: >0 > at java.util.ArrayList.RangeCheck(Unknown Source) > at java.util.ArrayList.get(Unknown Source) > at >org.apache.wsif.util.WSIFUtils.unWrapPart(WSIFUtils.java:1385) > at clients.DynamicInvoker.unWrapIfWrappedDocLit(Unknown Source) > at clients.DynamicInvoker.invokeMethod(Unknown Source) > at clients.DynamicInvoker.main(Unknown Source) > >Kind regards, >Dylan Honorez, >[EMAIL PROTECTED] >http://www.xt-i.com > > > > > -- The best way to predict the future is to invent it - Alan Kay
wstest.wsdl
Description: wstest.wsdl
