Are you sure that the service code you show below corresponds to the class being loaded on the server? Did you have a previous version that you copied over? If so, did you restart the webapp or servlet container?
On 19 Jun 2003 at 12:19, ymchatty wrote: > > Here is the client code that sets the params > ------------------------------------------------------------------ > params.addElement(new Parameter("nameToLookup", String.class, > nameToLookup, null)); > call.setParams(params); > // Invoke the call. > Response resp; > try > { > resp = call.invoke(url, ""); > } > > ----------------------------------------------------------------- > > Here is the service class that has this method. > --------------------------------------------------------------------- > public class HelloWorld{ > public Hello sayHello(String name){ > return new Hello("Hello "+name); > } > } > > Scott Nichol <[EMAIL PROTECTED]> wrote: > 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 > > > > ---------------------------------------- > > > > > > > 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"/> > > > > > > > > --------------------------------------- > > > > 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)=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. > > > > --------------------------------- > 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.