среда, 22 октября 2014 г.

Сервис.Net


При отправке на веб-сервис, написанный на .Net, необходимо чтобы в последовательности был медиатор Header.
<header name="Action" value="http://taskcenter.ru/GetFullTaskInfo"/>
Иначе ошибка:
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: urn:mediate. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
http://stackoverflow.com/questions/11921727/wso2-esb-mediate-soap-services

SOAP-сообщение:

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<m:GetFullTaskInfo xmlns:m="http://taskcenter.ru/">
<m:taskId>10350</m:taskId>
<m:adminUserId>1</m:adminUserId>
</m:GetFullTaskInfo>
</soapenv:Body>
</soapenv:Envelope>

Комментариев нет:

Отправить комментарий