axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reddy, Sanket \(US - Hyderabad\)" <>
Subject RE: Error while in WSDL running a simple HelloWorld program
Date Thu, 05 Oct 2006 14:21:10 GMT
 NO 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?


-----Original Message-----
From: Kinichiro Inoguchi [] 
Sent: Thursday, October 05, 2006 7:40 PM
Subject: Re: Error while in WSDL running a simple HelloWorld program


I think your way is right with Axis2.
Try call your service by REST,

Does this work ?
Or got any errors ?


--- "Reddy, Sanket (US - Hyderabad)" <> 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 

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message