Hai I am using Web Service Invocation Framework from apache to call webservices. I created an sample example which contains a method getValues() which takes a ArrayList and String as parameters and return back a String
While i am trying to execute the method getValues it throws a exception method not found, but the method is there
Exception is : =============
Error while executing sample, received an exception from WSIF; details: org.apache.wsif.WSIFException: Method getValues(class java.util.ArrayList, class java.lang.String) was not found in portType {http://localhost:7001/axis/services/WSIFProdcut}WSIFProductRemote at org.apache.wsif.base.WSIFClientProxy.findMatchingOperation(Unknown Source) at org.apache.wsif.base.WSIFClientProxy.invoke(Unknown Source) at $Proxy0.getValues(Unknown Source) at Run.main(Run.java:47)
I attached the .wsdl file,my client program and the remote interface with this.
I am using Weblogic 7, Java 1.4.2 Please help me to resolve this.
// create the stub WSIFProductRemote stub = (WSIFProductRemote) service.getStub(WSIFProductRemote.class); // do the invocation // args[1] is the zip code String zipInfo = stub.getValues(al,"hello"); System.out.println(zipInfo); } catch (WSIFException we) { System.out.println( "Error while executing sample, received an exception from WSIF; details:"); we.printStackTrace(); } catch (RemoteException re) { System.out.println( "Error while executing sample, received an exception due to remote invocation; details:"); re.printStackTrace(); } catch (Exception e) { System.out.println("Exception E == > "+ e ); } }