INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

HOw to use the link of webservices in java program.

HOw to use the link of webservices in java program.

HOw to use the link of webservices in java program.

(OP)
Hi,

I would need some pointers developing web services client. The web services has already been deployed using Tomcat and Axis. I can see the exposed methods from the link. Now I need to write a client to be able to use those methods. Specifically, how to use the URI link from my java program and invoke those methods provided by the webservices?

I have checked online http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/2.0/tutorial/doc/ . In this example, they use the following:

public class HelloClient {
  @WebServiceRef(wsdlLocation="http://localhost:8080/
      helloservice/hello?wsdl")


However, I do not see how this service(http://localhost:8080/helloservice/hello?wsdl) is reference in the code. One of the method provided by software vendor is getFamilyName which takes a parameter of a familyname(type string). Then, returns all information  about a person having the specified family name.


Thanks
John

RE: HOw to use the link of webservices in java program.

(OP)
Hi,

Please note that I'm not asking for the entire code. I just need to know how to use the URI link from my java program and invoke those methods provided by the webservices?


Thanks
John

RE: HOw to use the link of webservices in java program.

Maybe you could try Apache Xfire to generate the code

Cheers,
Dian

RE: HOw to use the link of webservices in java program.

(OP)
Hi Dian,

Thanks a lot for your input. However, the web services have been already developed and has been deployed. I just need to know how to use the URI link from my java program and invoke those methods provided by the webservices?


Thanks
John

RE: HOw to use the link of webservices in java program.

(OP)
Hi Dian,

Are you saying that I could implement the client using Xfire so I could access the already deployed Webservices? Sorry to ask you this question...I'm really new to web services stuffs...Thanks!

RE: HOw to use the link of webservices in java program.

You can do both things with XFire, but in this case I mean you can invoke the already developed webservice. Take a look at this

Cheers,
Dian

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close