SOAP error when consuming WSDL- unsupported security policy assertion was detected

Good evening all.   I'm working through some SOAP integration with Outsystems.   The web service in question has a .PRX certificate with password.   We imported that into the personal cert store on the server and then exported a .DER and loaded that in ServiceCenter.  

When I create an extension and try to import a WSDL I'm getting the error below.  truncated for space:


Cannot import wsdl:portType Detail: An exception was thrown in a call to a policy import extension. Extension: System.ServiceModel.Channels.SecurityBindingElementImporter Error: An unsupported security policy assertion was detected during the security policy import: <sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"><sp:InitiatorToken><wsp:Policy><sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">


Any suggestions on what I should be looking for here?

Hi Josh,

See if this post can be of any help. It explains in detail how to secure web services with client certificates and also how to call web services that require client certificates.

Regards,

Nordin

Nordin Ahdi wrote:

Hi Josh,

See if this post can be of any help. It explains in detail how to secure web services with client certificates and also how to call web services that require client certificates.

Regards,

Nordin

I reviewed that post, and those are the steps we followed with loading the certs to the front end server and service center.    But when I actually create a service module and then attempt to import the WSDL I get the security error.

Correction, the cert was a .PFX not .PRX.

Hi Josh,

I'm not sure I completely understand your issue. Did you try to consume the webservice via an extension like you mentioned in the first post or via a module like you say in your last post? In other words, does this error occur in Integration Studio or Service Studio?

Could you maybe provide some screenshots?

Regards,

Nordin

Sorry, I'm attempting to consume in a service module.   I didn't even realize we could consume a web service in Integration Studio, I'm not sure how that works but I'd like to know.


Once I click consume I get the error message in my original post.  

Hi Josh,

Check out this post to learn how to consume a web service in Integration Studio.

As for your issue, I'm not sure what is causing this. The platform has trouble with importing wsdl:portType.

There are some Unsupported Soap Use Cases mentioned in this documentation. Maybe you can check your WSDL for one of these cases.

If all fails, I'd contact OutSystems Support and send them the WSDL to analyze.

Best of luck, 

Nordin

One step forward, but now I'm stuck again.   I followed the instructions for creating an extension and importing the wsdl via Visual Studio.   However now I'm a bit stuck, the example provided has a single input and output.   My user case has 2 required inputs and 5 output fields.   

I'm not the best C# guy but it looks like the OS guide simply creates a new instance of the webservice and then assign the ssoutput to the value from calling the webservice.   When I try that I get the error below.  (I assume there is probably a way to assign them all sequentially but I can't find any information on how that is accomplished)

Any suggestions?