开发者

How can I make the generated service wsdl (wcf service) contain soap headers?

开发者 https://www.devze.com 2023-03-20 17:37 出处:网络
I have developed a WCF service which use SOAP headers as part of the validation of the request process.

I have developed a WCF service which use SOAP headers as part of the validation of the request process. In my service side I verify that the SOAP headers sent and valid. I generated WSDL files using SOAPUI in order to send to my costumer. When testing the generated wsdls, I noticed that SOAPUI does not add SOAP headers to the requests automatically. Is there any way to开发者_如何学C mark the service (with attribute or something similar) like a service which needs SOAP headers?

Thanks


If you are only using some interceptors / inspectors to validate that header is present you cannot expect that it will be mentioned in WSDL. Header is mentioned in WSDL only if it is part of message contract used by your operation or if you add them to message description manually.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号