Validation of encrypted SOAP request throws the error fault

前端 未结 2 1063
挽巷
挽巷 2021-01-26 17:23

This picture shows my simple ws-security configuration of soapui:

And I apply this configuration to soap request:

Then

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-26 18:05

    Don't hesitate about the Validate option in the testStep request.

    This option validates the request against the xsd schema of your request located in the wsdl which you use to load the project in SOAPUI

    Probably your wsdl lacks on the definition of the [ws security policy] which tells you the security requeriments implemented in your WS.

    For your case your wsdl must have something like:

    
        ...
        
            ...
            ...
            ...
        
    
    

    So since this is missing the request doesn't validate against your wsdl.

    Anywise, the thing is that the wsdl you load on SOAPUI could be different from the WS implementation (since it's not up to date or something like that). So simply try to send the request (although it does not meet the wsdl validation) and see what your WS respond.

    Hope this helps,

提交回复
热议问题