You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Reddy, Sanket (US - Hyderabad)" <sa...@deloitte.com> on 2006/10/05 15:44:34 UTC

Error while in WSDL running a simple HelloWorld program

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]

Re: How to deploy *.aar file in weblogic 8.1?

Posted by Eran Chinthaka <ch...@opensource.lk>.
Reddy, Sanket (US - Hyderabad) wrote:
> Hi friends 
> 
> I want to deploy my web service in weblogic 8.1. i.e where can I keep
> my *.aar file to make it as a WS in weblogic. 

Assuming you have deployed axis2.war file properly in weblogic, use the
admin web app to upload your service.


How to deploy *.aar file in weblogic 8.1?

Posted by "Reddy, Sanket (US - Hyderabad)" <sa...@deloitte.com>.
Hi friends 

I want to deploy my web service in weblogic 8.1. i.e where can I keep
my *.aar file to make it as a WS in weblogic.  And later on use the stub
generated with WSDL2Java.bat and to access the web service with
client(which uses this stub).

Is it possible, if yes ? Can u please provide me with specific links or 
websites where I can get some information on that .

Regards
Sanket
 

-----Original Message-----
From: Kinichiro Inoguchi [mailto:ingc1968@yahoo.com] 
Sent: Thursday, October 05, 2006 8:08 PM
To: axis-user@ws.apache.org
Subject: RE: Error while in WSDL running a simple HelloWorld program

You can find "version" service under samples/version folder.
There you see version.jar. 
Rename this to version.aar, then deploy it.

How about this ?

--- "Reddy, Sanket (US - Hyderabad)" <sa...@deloitte.com> wrote:

>  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:ingc1968@yahoo.com] 
> 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)" <sa...@deloitte.com> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Error while in WSDL running a simple HelloWorld program

Posted by Kinichiro Inoguchi <in...@yahoo.com>.
You can find "version" service under samples/version folder.
There you see version.jar. 
Rename this to version.aar, then deploy it.

How about this ?

--- "Reddy, Sanket (US - Hyderabad)" <sa...@deloitte.com> wrote:

>  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:ingc1968@yahoo.com] 
> 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)" <sa...@deloitte.com> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Error while in WSDL running a simple HelloWorld program

Posted by "Reddy, Sanket (US - Hyderabad)" <sa...@deloitte.com>.
 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:ingc1968@yahoo.com] 
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)" <sa...@deloitte.com> 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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Error while in WSDL running a simple HelloWorld program

Posted by "Reddy, Sanket (US - Hyderabad)" <sa...@deloitte.com>.
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:ingc1968@yahoo.com] 
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)" <sa...@deloitte.com> 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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Error while in WSDL running a simple HelloWorld program

Posted by Kinichiro Inoguchi <in...@yahoo.com>.
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)" <sa...@deloitte.com> 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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org