• Post Reply Bookmark Topic Watch Topic
  • New Topic

help me to access web services

 
rajini kriya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i generated web services using Rad and runtime environment is apache axies then i got the web browser in that i need to access the methods for accessing web services but i didnt get the results i got exception.for accessing these web services i need to set username and password in the client program using apache axies JAX-RPC client side programing for accessing the web services i cant find out where i need to write the client code.

Thanks,
 
Nathan Hook
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doing a soap request using just a web browser will not work very well.

You can use a program called soapUI to test your web service.

To call your web service from a client application you will need to generate your client code from your web service's WSDL file.

Both version of Axis (1 and 2) have nice documentation on how to generate your client code from a WSDL file.

Best of Luck.
 
rajini kriya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i generated client code using rad now i got client only i need to access the web service using username and password.i need to set the username and password using client code i dont know how to set the username and password using client code and how to acces the web services using the apache axies.can you please help me in this.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may need to set the USERNAME_PROPERTY and PASSWORD_PROPERTY.

Client Side Axis
API: javax.xml.rpc.Stub

 
rajini kriya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your information,

Do i need to write the client for the username and passwod settings. but i dont have any idea how to write the client code for setting the username and password.Do you have any example how to use username and password settings using lready generated client code.

appriciate your help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!