开发者

Is it possible to consume a .Net WCF 4 Web Service by a non-.Net language?

开发者 https://www.devze.com 2023-01-19 03:51 出处:网络
I\'ve been beating my head against a problem for about a week and am now resorting to just a \"is it even possible question\".

I've been beating my head against a problem for about a week and am now resorting to just a "is it even possible question".

Can other language connect to a web service that is written using .Net's WCF 4 framework?

When WCF first came out years ago (开发者_运维知识库under .Net v3.0/winfx), I was able to connect a Java client to it using the basicHttpBindings; however, attempting to do the same thing under the latest and greatest version has me wondering if it's even possible. I can create a WSDL from the Cassini web server that comes with Visual Studio but am always told that it's ill formed. When I compare it to a WSDL from an ASMX service (which works), the two are vastly different.

Has anyone created a Web service with WCF 4 and been able to connect to it with a non-.Net language or even using something like WSDL.exe?


Yes you can, thats one of the selling points of SOA. You interface via XML definitions, which transcends languages.

What type of contracts did you define?

Download SOAP-UI and you can see for yourself. A, its written in java, and B all it needs is the WSDL address.

0

精彩评论

暂无评论...
验证码 换一张
取 消