简体   繁体   中英

WCF service soapUI issue

I have a WCF web service created, the service uses wshttbinding and is working fine when i try invoking by adding service reference (with certificates supplied).When i try invoking it from soapUI i am getting an error. I tried disabling the security mode but found out that the following line of code is causing the issue.

string certInfo = OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name;

I am getting the above value as null. Is there any way i can pass this context from within soapUI

In soapUI, you need to specify the Outgoing WSS , which specifies which project-level outgoing WS-Security configuration to apply to outgoing requests.

The following links should provide sufficient background information:
http://www.soapui.org/SOAP-and-WSDL/applying-ws-security.html
http://www.soapui.org/SOAP-and-WSDL/authenticating-soap-requests.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM