.net WCF和ColdFusion

.net WCF和ColdFusion,.net,web-services,wcf,coldfusion,coldfusion-11,.net,Web Services,Wcf,Coldfusion,Coldfusion 11,我有一个WCF Web服务,我想使用ColdFusion。常规的过程是使用CFHTTP到WSDL,并在主体中包含SOAP请求。正常情况下,这是可行的,一切都很好 <cfsavecontent variable="xmlBody" > <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/"> <soap:Header/&

我有一个WCF Web服务,我想使用ColdFusion。常规的过程是使用CFHTTP到WSDL,并在主体中包含SOAP请求。正常情况下,这是可行的,一切都很好

<cfsavecontent variable="xmlBody" >
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
   <soap:Header/>
   <soap:Body>
      <tem:GetVersion/>
   </soap:Body>
</soap:Envelope>
</cfsavecontent>
这次我遇到了一个不同的错误:
org.apache.axis2.AxisFault:com.ctc.wstx.exc.WstxUnexpectedCharException:DOCTYPE声明中意外的字符''(代码34);公共标识符和系统标识符之间应该有空格


我的问题是:我现在该怎么办?

我使用的是CF11版本。我建议在使用Visual Studio代码调用Web服务时使用某种网络嗅探器来监视网络流量。然后,您可以尝试重建类似的数据包有了CaldField.也许仍然使用<代码> CFHTP<<代码> .我一直试图用Web服务来使用<代码> cFIFOKE .它似乎不能给你足够的控制. @ Miguel-f,我会试试.不幸的是,我在VisualStudio上的经验很小,我正试图纠正这个问题.如果你有我可以利用的资源,这将非常有用。web服务使用的到底是什么样的安全性?根据文档,它使用带有用户名和密码的WsHttpBinding。我不知道我是否已经完全理解了我在过去几天读到的所有内容,但我知道web服务使用的正是这种安全性。我使用了WCFStorm,SOACleaner和SoapUI,它们都给了我类似的结果。
<cfhttp url="https://www.example.com/OtherService.svc?wsdl" method="post" timeout="1200" username="myUsername" password="myPassword" >
    <cfhttpparam type="header" name="Content-Type" value="application/soap+xml;charset=UTF-8">
    <cfhttpparam type="header" name="Content-Length" value="#len(trim(xmlbody))#">
    <cfhttpparam type="header" name="soapAction" value="http://tempuri.org/GetVersion">
    <cfhttpparam type="body" name="body" value="#trim(xmlBody)#">
</cfhttp>
<cfdump var="#cfhttp#">
<cfinvoke webservice="https://www.example.com/OtherService.svc?wsdl" method="getVersion" username="myUsername" password="myPassword" returnvariable="wsdl">
</cfinvoke>

<cfdump var="#wsdl#">