我很难在我的iPhone应用程序中使用非常简单的(Hello World)WCF Web服务.根据我的阅读,您必须手动创建请求消息,然后将其发送到Web服务URL.
我能够在.asmx Web服务上完成此任务,但不能使用WCF服务.
我如何知道请求SOAP消息的正确格式?
我试图访问的Web服务格式为:http://xxx.xxx.xxx.xxx: PORT/IService1 /(在VM中本地运行)
我为缺乏信息而道歉,我很遗憾.
任何和所有的帮助非常感谢.
我有一个使用TCP/IP托管的WCF服务(netTcpBinding):
var baseWcfAddress = getWcfBaseUri();
host = new ServiceHost(wcfSingleton, baseWcfAddress);
var throttlingBehavior = new System.ServiceModel.Description.ServiceThrottlingBehavior();
throttlingBehavior.MaxConcurrentCalls = Int32.MaxValue;
throttlingBehavior.MaxConcurrentInstances = Int32.MaxValue;
throttlingBehavior.MaxConcurrentSessions = Int32.MaxValue;
host.Description.Behaviors.Add(throttlingBehavior);
host.Open();
Run Code Online (Sandbox Code Playgroud)
我想用Objective C或C++编写一个Mac客户端.是否有任何现有的类可以促进与我的WCF服务的连接?如果没有,我的步骤和选择是什么?