Hi,

I am new to soap and is trying to run it with Orion server. When I try to
run the hello server example I get the following error

   Fault Code   = SOAP-ENV:Server
   Fault String = Method 'sayHelloTo' is not supported.

my service is like this

package hello;
public class HelloServer 
{
   
   public String sayHelloTo()
   {
      System.out.println("sayHelloTo(String name)");
      return "Hello " + "rajeev" + ", How are you doing?";       
   }    
}

and the client is this

 Call call = new Call();
 call.setSOAPMappingRegistry(new SOAPMappingRegistry());
     call.setTargetObjectURI("urn:Hello");
        
         call.setMethodName("sayHelloTo");
         call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);         
         Vector params = new Vector();         
             params.addElement(new Parameter("name", String.class, name,
null));
         call.setParams(params);
                
         // Invoke the call.
         Response resp = null;         
         try
         {
            resp = call.invoke(url, "");
        
         }
   
Any idea why this is happening
Thanks
Rajeev 

Reply via email to