ASP.net StoreFront WSI接口400错误请求

时间:2013-09-17 21:08:31

标签: http soap aspdotnetstorefront

所以我修复了一些正在吐出的错误,现在我得到的只是一个HTTP 400,任何人都知道什么是错的?或者有关如何获取更多信息的任何想法?我不是一位经验丰富的Windows管理员,也不是ASP.net StoreFront的经验。

< POST http://192.168.122.3/ASPDNSF0/ipx.asmx
User-Agent: libwww-perl/6.05
Content-Type: application/soap+xml; charset="utf-8"
SOAPAction: "http://www.aspdotnetstorefront.com/DoItUsernamePwd"

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap12:Body>
    <DoItUsernamePwd xmlns="http://www.aspdotnetstorefront.com/">
      <AuthenticationEMail>admin@aspdotnetstorefront.com</AuthenticationEMail>
      <AuthenticationPassword>Admin$11</AuthenticationPassword>
      <XmlInputRequestString>
        <ASPDotNetStorefrontImport Version="9.2">
          <Product action="Add">
            <Name>my product name</Name>
            <SKU>1234</SKU>
            <Description><![CDATA[please
add some <b>data</b>]]></Description>
          </Product>
        </ASPDotNetStorefrontImport>
      </XmlInputRequestString>
    </DoItUsernamePwd>
  </soap12:Body>
</soap12:Envelope>

> HTTP/1.1 400 Bad Request
Cache-Control: private
Date: Tue, 17 Sep 2013 23:06:04 GMT
Server: Microsoft-IIS/7.0
Content-Type: text/html
Client-Date: Tue, 17 Sep 2013 21:06:04 GMT
Client-Peer: 192.168.122.3:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET

Bad Request

1 个答案:

答案 0 :(得分:0)

主要问题是它基本上是一个嵌入请求的完整子XML文档,完全转义。还有一些元素略微偏离AspDotNetStorefrontImport

POST http://192.168.122.3/ASPDNSF0/ipx.asmx
User-Agent: libwww-perl/6.05
Content-Length: 1368
Content-Type: application/soap+xml; charset="utf-8"
SOAPAction: "DoItUsernamePwd"

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap12:Body>
    <DoItUsernamePwd xmlns="http://www.aspdotnetstorefront.com/">
      <AuthenticationEMail>admin@aspdotnetstorefront.com</AuthenticationEMail>
      <AuthenticationPassword>Admin$11</AuthenticationPassword>
      <XmlInputRequestString>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;AspDotNetStorefrontImport Version="9.2"&gt;
  &lt;Entity Action="Add" EntityType="Manufacturer"&gt;
    &lt;Name&gt;Nike&lt;/Name&gt;
    &lt;Address1&gt;something lane&lt;/Address1&gt;
    &lt;Address2&gt;somewhere&lt;/Address2&gt;
    &lt;City&gt;Austin&lt;/City&gt;
    &lt;State&gt;TX&lt;/State&gt;
    &lt;ZipCode&gt;78752&lt;/ZipCode&gt;
    &lt;Country&gt;United States&lt;/Country&gt;
    &lt;Published&gt;false&lt;/Published&gt;
    &lt;Phone&gt;1112223333&lt;/Phone&gt;
    &lt;FAX&gt;1112223333&lt;/FAX&gt;
    &lt;Description&gt;&lt;![CDATA[athletic manufactuer]]&gt;&lt;/Description&gt;
    &lt;Display&gt;
      &lt;XMLPackage&gt;entity.gridwithprices.xml.config&lt;/XMLPackage&gt;
    &lt;/Display&gt;
  &lt;/Entity&gt;
&lt;/AspDotNetStorefrontImport&gt;
</XmlInputRequestString>
    </DoItUsernamePwd>
  </soap12:Body>
</soap12:Envelope>