使用Visual Studio 2010中,我开发一个Web应用程序托管的第三方使用WCF服务。他们告诉我他们不能调用它。为了测试,他们将我重定向到Altova XmlSpy,并指出,在创建新的SOAP请求时,如果他们选择“作为SOAP + XML发送(SOAP 1.2)”,请在“更改SOAP请求参数”菜单项中选中,以下两个警报对话框:无法发送WCF服务请求作为SOAP + XML
HTTP error: could not POST file ‘/TurniArc/WebServices/Processi.svc’ on server ’10.51.0.108’ (415)
Error sending the soap data to ‘http://10.51.0.108/TurniArc/WebServices/Processi.svc’ HTTP error: could not POST file ‘/TurniArc/WebServices/Processi.svc’ on server ’10.51.0.108’ (415)
我确实证实了这一点。 取消选中该选项,请求按需要提交。我从来没有用soapUI来调用我的web服务,这是我一直用于内部测试的软件。
这是第一个Web服务创建,开始没有任何中的理论知识(但我想每个人都没有:-)),所以我甚至不知道从哪里闲逛来解决这个问题。问题在于绑定吗?我创建使用添加/新项目/ WCF服务,保留所有默认选项的服务,所以应该basicHttpBinding的
这是我的web.config的serviceModel部分
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true"/>
<!--other bindings related to proxies to other services I'm invoking -->
</system.serviceModel>
我的接口只有在
[ServiceContract(Namespace="http://www.archinet.it/HRSuite/Processi/")]
属性和类实现它具有
[ServiceBehavior(IncludeExceptionDetailInFaults = true, Namespace = "http://www.archinet.it/HRSuite/Processi/")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
个属性
谢谢
编辑:第三方是否正在使用Oracle SOA中间件
那么什么是正确的绑定? WsHttpBinding的? – Piddu 2011-05-31 12:29:11
没有以正确的方式是向您发送SOAP 1.1 – 2011-05-31 12:34:29
请求正如我刚才在邮件中写道,他们正在使用Oracle SOA,所以,只要它们能够改变请求格式,他们必须做出每个小编辑是一个长期的昂重的事情。由于我的身体更加敏捷,我认为我的软件是一致的;今天早上我研究了一下,wsHttpBinding整体看起来更好。是吗? – Piddu 2011-05-31 12:50:28