aspose file tools*
The moose likes Web Services and the fly likes Windows Communication Foundation(WCF) WebService and Java client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Windows Communication Foundation(WCF) WebService and Java client" Watch "Windows Communication Foundation(WCF) WebService and Java client" New topic
Author

Windows Communication Foundation(WCF) WebService and Java client

Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Hello Friends,

I have been put into a webservice project. My task is to create a client in Java for an already developed webservice in WCF.
I need to use XFire to create the client.
I have basic knowledge about webservice.
Actually i have tried creating java client using one plugin(myEclipse IDE) and using that created client successfully for some webservices available for free on net.I think they were not developed using WCF.

So,I haven't handcoded much to create client as i had plugin for it but that plugin doesn't work for Webservices developed using WFC.

Can somebody suggest me some good links/ways , how to create a client for WCF webservice? Or plugin? Please show some way.That would really be appreciated.

Thanks.
[ June 18, 2008: Message edited by: Vishal Pandya ]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
What documentation do you have for this existing web service?

We used to assume that "web service" implied SOAP and WSDL but the popularity of RESTful web services has changed that.

Bill
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Thanks for your reply.
Originally posted by William Brogden:
What documentation do you have for this existing web service?

- The web service is developed using .Net WCF.
- I know that how many methods are available in web service and their signatures also.

I am newbie to web service so can you please tell me what else we should know in order to create a client.
Originally posted by William Brogden:

We used to assume that "web service" implied SOAP and WSDL but the popularity of RESTful web services has changed that.
Bill
I don't know whether he has implemented RESTful webservice or not? I will ask him.

Can you suggest me a good book/link to learn WebService quickly?

Thanks
[ June 18, 2008: Message edited by: Vishal Pandya ]
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Vishal Pandya:

Can you suggest me a good book/link to learn WebService quickly?
Thanks


Our Webservice FAQ might help you further


Spritle Software Blogs
saivenu madhav
Greenhorn

Joined: Nov 15, 2007
Posts: 29
Hello I need samething,

Could any one suggest which is the best one to go for consuming WCF with Java client.

AXIS is better?

I heard that Microsoft and Sun Systems have created a joint project called Metro-Tango for providing solution for JAVA consuming WCF,

Is this Tango is good or complex to learn

Could any one help in this regard with fll details and links for sample code,.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
From this wikipedia entry it looks like WCF is a really huge topic that tries to cover just about everything, including both SOAP and REST style plus some sort of optimized binary transmission.

If you can get a WSDL document describing the service you need to access then the AXIS toolkit will help you develop a client.

Bill
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
I am using XFire.
saivenu madhav
Greenhorn

Joined: Nov 15, 2007
Posts: 29
Hi visal,

Can you help me in this regard.I have the following doubts

Whether the Xfire is freeware, if so could you please send the details of it?

How can we connect WCF with java client by using XFire ? Please give me some sample code also.


ThanskVisal

Madhav
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
visal (Typo).

XFire is free ware.
It's been merged in Apache CXF.

I used MyEclipse 6 IDE. In which there is an utility(Go through this link) to create web service client.I used it and if everything goes well your client is ready.

PS: Initially i wasn't able to access WCF webservice.I don't know much about WCF web service(it wasn't required). Then they modified it some way so now i can access it.Nothing is hand coded from myside.
[ July 30, 2008: Message edited by: Vishal Pandya ]
 
Don't get me started about those stupid light bulbs.
 
subject: Windows Communication Foundation(WCF) WebService and Java client