NO ..it doest solve the problem .. In browser it just gets me the main page which we get when we see the list of webservices
And in XML ALTOVA spy I get back the HTML version of the above page. :( I am really stuck . Can anyone send me a sample working code? Regards Sanket -----Original Message----- From: Kinichiro Inoguchi [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 7:40 PM To: axis-user@ws.apache.org Subject: Re: Error while in WSDL running a simple HelloWorld program Hi, I think your way is right with Axis2. Try call your service by REST, http://localhost:8080/axis2/rest/HelloWorld/sayHello?str=abcde Does this work ? Or got any errors ? Regards, kinichiro --- "Reddy, Sanket (US - Hyderabad)" <[EMAIL PROTECTED]> wrote: > Error while in WSDL running a simple HelloWorld program. > > Hi friends > > This is the first time I am trying axis2. And I am trying to run a > simple helloworld program > > public class HelloWorld { > public String sayHello(String str) { > return "Hello :"+str ; > } > } > > Services.xml > > <service> > <description> > This is my first service, which says hello > </description> > <parameter name="ServiceClass" > locked="false">HelloWorld</parameter> > <operation name="sayHello"> > <messageReceiver > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> > </operation> > </service> > > > I have created a HelloWorld.jar and renamed it to HelloWorld.aar and > put in the repo\services directory and I start the http-server.bat > with repository location as a parameters. I can find the deployed WS > and also the WSDL but when I try to use this WSLD to call the WS > using the ALTOVA XML SPY (which creates the SOAP request and also > gets the response.) > > WSDL file:- > http://localhost:8080/axis2/services/HelloWorld?wsdl > > I get an error in SOAP response and mainly I don't see the input > field in the SOAP request. To enter the parameter for the > sayHello(String str). > > Can u please guide me through it.?? Am I doing something wrong ?? > Isn't it possible to call the WS using ALTOVA XMY SPY -->MENU--> > SOAP-->create new soap request. > > Can anyone pass the Client code for a simple WS > HelloWorld.sayHello(String str) ?? > > Regards > Sanket > > > This message (including any attachments) contains confidential > information intended for a specific individual and purpose, and is > protected by law. If you are not the intended recipient, you should > delete this message. > > > Any disclosure, copying, or distribution of this message, or the > taking of any action based on it, is strictly prohibited. [v.E.1] > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]