0

所以我修复了一些被吐出的错误,现在我得到的只是一个 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
4

1 回答 1

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>
于 2013-09-18T18:34:12.283 回答