使用SoapUI测试动态CRM 2011 OnPremise - '禁用脚本'响应

时间:2015-11-12 15:11:00

标签: soap dynamics-crm-2011 soapui

感谢所有人阅读此内容。

我正在使用 SOAP 测试 Dynamics CRM 2011 端点,并且在使用SOAPUi配置测试套件之后,来自请求的响应将作为网页返回读取:"禁用脚本。单击“提交”继续。" 它'似乎身份验证和请求都是正确的,我尝试根据其他用户的经验更改SOAPUi中的不同参数,但任何事情对我都有效。

这是一个SOAPUi配置错误吗?或者它来自服务端点?

我还从Technet查看了这篇文章:http://social.technet.microsoft.com/wiki/contents/articles/1425.ad-fs-2-0-script-is-disabled-click-submit-to-continue.aspx

我正在调用Dynamics CRM 2011内部部署SOAP端点

SOAPUi测试请求

接头:

  • SOAPAction http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Retrieve
  • 接受application/xml, text/xml, */*
  • 内容类型text/xml; charset=utf-8

请求网址:http://myserver/XRMServices/2011/Organization.svc/web

身份验证:NTLM(包含用户,密码和域名)

请求:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ser="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:con="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
   <soap:Header/>
   <soap:Body>
         <ser:entityName>contact</ser:entityName>
         <ser:id>91A6E0D1-1182-E511-B589-5EF3FC563A99</ser:id>
         <ser:columnSet>
            <con:AllColumns>false</con:AllColumns>
            <con:Columns>
               <arr:string>fullname</arr:string>
            </con:Columns>
         </ser:columnSet>
      </ser:Retrieve>
   </soap:Body>
</soap:Envelope>

回复:(我已经清除了一些私人信息)

<html>
   <head>
      <title>Working...</title>
   </head>
   <body>
      <form method="POST" name="hiddenform" action="http://myserver:444/">
         <input type="hidden" name="wa" value="wsignin1.0"/>
         <input type="hidden" name="wresult" value="*here was my security token*"/>
         <input type="hidden" name="wctx" value="rm=1&amp;id=40167dd3-3ac9-4961-a476-3b7ada5a6395&amp;ru=%2fmyorganization%2fXRMServices%2f2011%2fOrganization.svc%2fweb"/>
         <noscript>
            <p>Script is disabled. Click Submit to continue.</p>
            <input type="submit" value="Submit"/>
         </noscript>
      </form>
      <script language="javascript">window.setTimeout('document.forms[0].submit()', 0);</script>
   </body>
</html>

0 个答案:

没有答案