How to import a WCF web service using a Java client

Posted by JRP on Stack Overflow See other posts from Stack Overflow or by JRP
Published on 2010-05-04T18:33:07Z Indexed on 2010/05/04 18:38 UTC
Read the original article Hit count: 382

Filed under:
|
|

I have a WCF web service using wsHttpBinding that I am consuming from a Java client. I generated code from the WSDL using wsimport. The java client appears to be creating the service fine but when I call a method on the service the client just spins.

MyService s = new MyService();
IMyService i = s.getWSHttpBindingIMyService();
returnedValue = i.getSomething(2); // method call

Can a java client communicate with a WCF webservice that is using wsHttpBinding? I have read that I might need to use WSIT (Metro) but am confused on how to proceed with that. Any help will be appreciated.

© Stack Overflow or respective owner

Related posts about java-client

Related posts about wcfservice