We are trying to create Endpoint Web Service Instance to invoke a SOAP URL.But are receiving 500 - Internal Server Error.
We are able to ping from K2 lab server to rspective SOAP URL path.We need to pass SOAP header with user name,password.Can you please help us resolve and achive this.
value passed in Default HTTP Request headers after setting Add HTTP Request header property to methods to True:
{"$type":"SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeaderr], SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null","$values"::{"$type":"SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeader, SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null","Name":"Username","Value":"XXXXXX"},{"$type":"SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeader, SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null","Name":"Password","Value":"XXXX"}]}
In SOAP UI - authentication details is passed in the below format:
<SOAP-ENV:Header>
<ns2:Security xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<ns2:UsernameToken>
<ns2:Username>XXXXXX</ns2:Username>
<ns2:Password>XXXXXX</ns2:Password>
</ns2:UsernameToken>
</ns2:Security>
</SOAP-ENV:Header>