ASP.net Storefront中的SOAPAction无效

ASP.net Storefront中的SOAPAction无效,soap,aspdotnetstorefront,Soap,Aspdotnetstorefront,对于此对ASPDotNetStoreFront的请求,什么是正确的SOAPAction < 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 v

对于此对ASPDotNetStoreFront的请求,什么是正确的SOAPAction

< 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="7.1">
          <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 500 Internal Server Error
Cache-Control: private
Date: Tue, 17 Sep 2013 22:34:31 GMT
Server: Microsoft-IIS/7.0
Content-Length: 1938
Content-Type: application/soap+xml; charset=utf-8
Client-Date: Tue, 17 Sep 2013 20:34:32 GMT
Client-Peer: 192.168.122.3:80
Client-Response-Num: 1
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="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" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope"><wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action><wsa:MessageID>urn:uuid:e8b22878-f37a-4362-8167-441ebab5be00</wsa:MessageID><wsa:RelatesTo>urn:uuid:18b7b7e3-7f65-4622-b093-a906a76b3aba</wsa:RelatesTo><wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To><wsse:Security><wsu:Timestamp wsu:Id="Timestamp-cd79b88a-3552-4d91-a8d7-d9e3cff73d73"><wsu:Created>2013-09-17T22:34:31Z</wsu:Created><wsu:Expires>2013-09-17T22:39:31Z</wsu:Expires></wsu:Timestamp></wsse:Security></env:Header><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Sender</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">System.Web.Services.Protocols.SoapException: Unable to handle request without a valid action parameter. Please supply a valid soap action.
   at System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
   at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage message)
   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
   at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&amp; abortProcessing)</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>

>HTTP/1.1500内部服务器错误
缓存控制:专用
日期:2013年9月17日星期二22:34:31 GMT
服务器:Microsoft IIS/7.0
内容长度:1938
内容类型:应用程序/soap+xml;字符集=utf-8
客户日期:2013年9月17日星期二20:34:32 GMT
客户端对等机:192.168.122.3:80
客户端响应编号:1
X-AspNet-Version:2.0.50727
X-Powered-By:ASP.NET
http://schemas.xmlsoap.org/ws/2004/08/addressing/faulturn:uuid:e8b22878-f37a-4362-8167-441ebab5be00urn:uuid:18b7b7e3-7f65-4622-b093-a906a76b3abahttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous2013-09-17T22:34:31Z2013-09-17T22:39:31Zsoap:SenderSystem.Web.Services.Protocols.SoapException:如果没有有效的动作参数。请提供有效的soap操作。
位于System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouterRequest()中
在Microsoft.Web.Services3.WseProtocol.RouterRequest(SoapServerMessage消息)上
在System.Web.Services.Protocols.SoapServerProtocol.Initialize()中
位于System.Web.Services.Protocols.ServerProtocol.SetContext(类型类型、HttpContext上下文、HttpRequest请求、HttpResponse响应)
创建(类型类型、HttpContext上下文、HttpRequest请求、HttpResponse响应、布尔和中止处理)
必须是 同样的网络服务说:

SOAPAction:“

请输入错误代码以查看问题
祝你好运

我试过了,这似乎也与我在XML中输入的打字错误有关
DoitUsernamePwd
也许问题出在你的代码中,你称之为web服务方法是什么?。。。这是完整的http请求。。。那是我贴的。不过,在这和我的评论之间,/this/已解决。