所以我修复了一些正在吐出的错误,现在我得到的只是一个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
答案 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><?xml version="1.0" encoding="utf-8"?>
<AspDotNetStorefrontImport Version="9.2">
<Entity Action="Add" EntityType="Manufacturer">
<Name>Nike</Name>
<Address1>something lane</Address1>
<Address2>somewhere</Address2>
<City>Austin</City>
<State>TX</State>
<ZipCode>78752</ZipCode>
<Country>United States</Country>
<Published>false</Published>
<Phone>1112223333</Phone>
<FAX>1112223333</FAX>
<Description><![CDATA[athletic manufactuer]]></Description>
<Display>
<XMLPackage>entity.gridwithprices.xml.config</XMLPackage>
</Display>
</Entity>
</AspDotNetStorefrontImport>
</XmlInputRequestString>
</DoItUsernamePwd>
</soap12:Body>
</soap12:Envelope>