Hi johnwsaunders3, Thanks for the reply. There is no header element in the WSDL. In general, how do we consume such kind of web service? I am very much new to WSE3.0.
I tried this:
UsernameToken token = new UsernameToken(strUserName, strPassword, PasswordOption.SendPlainText);
SendService objSendService = new SendService();
objSendService.SetClientCredential<UsernameToken>(token);
//Set Policy
Policy policy = new Policy();
policy.Assertions.Add(new UsernameOverTransportAssertion());
objSendService.SetPolicy(policy);
string strResponse = objSendService.GetStatus();
I am getting an Exception
Here is the response message.
<?xml version="1.0"
encoding="utf-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.generalException</faultcode><faultstring>WSDoAllReceiver:
security processing failed (actions
mismatch)</faultstring><detail><ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/">SIG-Traffic-Server-04</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
Any help is greatly appreciated. Thanks in advance.