Reputation: 7766
Calling a SOAP webservice as below. Security used by the client is Wsse security
DD.WritePortTypeClient client = new DD.WritePortTypeClient();
using (OperationContextScope scope = new OperationContextScope(client.InnerChannel))
{
OperationContext.Current.OutgoingMessageHeaders.Add(
new SecurityHeader("Username", "Password"));
ResponseType result_obj = new ResponseType();
result_obj = client.createPolicies(inputobj);
client.Close();
}
The wsse security is doing dynamically using SecurityHeader()
The code is running without any error but the result_obj is coming as null.
What am i missing here.
Edit1
Checked the same as in Comment using Fiddler4. The response is coming there. But at program the object is coming as null.
Upvotes: 0
Views: 290