Published on WSO2 Oxygen Tank (http://wso2.org)

WSO2 -> .NET: Action for ultimate recipient is required but not present in the message

By mg@the7thart.com
Created 2007-11-28 12:36

Hi!

I'm trying to use WSO2 to connect to a .NET WSE3 web services but no matter what I do I always get the following error:

Security: Microsoft.Web.Services3.Security.SecurityFault: Header http://schemas.xmlsoap.org/ws/2004/08/addressing:Action for ultimate recipient is required but not present in the message.
at Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion.RequireSoapHeaderFilter.ProcessMessage(SoapEnvelope envelope)
at Microsoft.Web.Services3.Pipeline.ProcessInputMessage(SoapEnvelope envelope)
at Microsoft.Web.Services3.WseProtocol.FilterRequest(SoapEnvelope requestEnvelope)
at Microsoft.Web.Services3.WseProtocol.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)

My code is the below:
$reqMessage = new WSMessage($reqPayloadString, array("to" => $url, "action" => $action));
$security_options = array("useUsernameToken" => TRUE );
$policy = new WSPolicy(array("security" => $security_options));
$security_token = new WSSecurityToken(array("user" => $username, "password" => $password, "passwordType" => "Digest"));
$client = new WSClient(array("useWSA" => TRUE, "policy" => $policy, "securityToken" => $security_token));
$resMessage = $client->request($reqMessage);

 

Does anybody knows whats may be happening?

Thank you!


Source URL:
http://wso2.org/forum/thread/2882