简体   繁体   English

在不使用肥皂的情况下调用Web服务

[英]Calling a web service without using soap

I have a web service I'm converting it to wcf 我有一个网络服务,正在将其转换为wcf

I want to create a couple methods in the wcf... these will call methods in the web service 我想在wcf中创建几个方法...这些将调用Web服务中的方法

but I don't want to use soap or whatever because it is so slow 但我不想用肥皂之类的东西,因为它太慢了

So I made a WCF service inside my web project. 因此,我在Web项目中提供了WCF服务。

Then I new up the web service and call a method... 然后,我新建了Web服务并调用了一个方法...

Is it using soap? 使用肥皂吗? Is this just the same as calling any other method in the code? 这与调用代码中的任何其他方法一样吗? Just as fast? 一样快? Is newing up the web service slow? Web服务更新缓慢吗?

The default configuration of WCF is basichttpbinding. WCF的默认配置是basichttpbinding。 This is the same as an old web service(SOAP). 这与旧的Web服务(SOAP)相同。

To send information in a binary format you need to configure WCF to use nettcpipbinding. 要以二进制格式发送信息,您需要将WCF配置为使用nettcpipbinding。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM