简体   繁体   中英

How to consume a SOAP 1.1 web service with WCF and WSE Security?

The application that we are currently developing requires that we consume an antiquated web service. We don't have access to the server-side code, so we are having to probe the service in an effort to discover its configuration.

We do however have access to their 'web client tool' that allows us to query the service - the only way we can get it to work this way is by ticking their box called 'WSE Security'... something that appears to be very old and (I think) no longer supported in .Net?

From what we can gather the web service appears to require a user token in a clear text format (using a combination of the WSDL's, Fiddler, Soap UI and Firebug) - not 100% certain though!

Does anyone have any ideas as to how we could consume this service within a modern application?

There are ways to configure WCF to communicate with older (usually ASMX, but some java-services too) web service that use WSE for security but it's certainly very obscure and documentation rarely exists. Rick Stahl recently blogged about a similar situation with a web service using WSE. Although that post may not be directly applicable to your situation, you may get some benefit from seeing the steps he took to craft a compatible soap message for the older WSE service.

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