What is your client code that creates the Vector of parameters? From the exception, it looks as though the Vector has a single parameter of type String. The service class, however, does not have a sayHello method that takes a string. Given that you are providing a mapping for the Hello class, perhaps this sample service has a method sayHello that takes an instance of Hello as a parameter.
On 19 Jun 2003 at 11:35, ymchatty wrote: > > I am getting the following exception, as I verified that I specified the correct > method name and type in both the client program and as well in the descriptor. Pls > let me know what I am missing. > > Here is the client code: > > ------------------------------------------ > > // Map the types. > smr.mapTypes(Constants.NS_URI_SOAP_ENC, > new QName("urn:xml-soap-helloworld-demo", "hello"), > Hello.class, beanSer, beanSer); > System.out.println(" setting the String class "); > Call call = new Call(); > > call.setSOAPMappingRegistry(smr); > call.setTargetObjectURI("urn:myHelloWorld"); > call.setMethodName("sayHello"); > call.setEncodingStyleURI(encodingStyleURI); > > ------------------------------------------ > > Here is the DD > > ---------------------------------------- > > <isd:mappings> > <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:x="urn:xml-soap-helloworld-demo" qname="x:hello" > javaType="samples.HelloWorld.Hello" > java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer" > xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/> > </isd:mappings> > > > --------------------------------------- > > Here is the exception > > > > Getting info for "Mr Good" > encodingStyleURI http://schemas.xmlsoap.org/soap/encoding/ > url http://localhost/NASApp/soap/servlet/rpcrouter > nameToLookup John B. Good > setting the String class > Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Server] [faultString=Exception > while handling service request: > samples.HelloWorld.HelloWorld.sayHello(java.lang.String) -- no signature match] > [faultActorURI=/NASApp/soap/servlet/rpcrouter] [DetailEntries= > [(0)=<stackTrace>java.lang.NoSuchMethodException: > samples.HelloWorld.HelloWorld.sayHello(java.lang.String) -- no signature match > at org.apache.soap.util.MethodUtils.getEntryPoint(MethodUtils.java:194) > at org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:548) > at org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:528) > at org.apache.soap.server.RPCRouter.invoke(RPCRouter.java:114) > at org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129) > at > org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:354) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) > > > --------------------------------- > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! Scott Nichol Do not reply directly to this e-mail address, as it is filtered to only receive e-mail from specific mailing lists.