Forum Discussion

bleeuwen's avatar
14 years ago

Generate code, Header WS-Security

Codegeneration generates only the composition of the Body of the SOAP message.

Is it possible to get code to create de SOAP HEADER, esspecially the items concerning "Authentication and security related settings"

When I define a WS-Security Configuration (Canonicalization, DigestValue, etc) and add it to a request of a webservice, SOAPUI generates perfectly the SOAP header (among them the value of DigestValue, etc) and the test performs well: I obtain got connection with a secure webservice.

HOw can the code which generates the SOAP HEADER be generated.

1 Reply

  • Right Click on your project

    Show project View

    SecurityConfigurations

    Under Outgoing WS-Security Configurations Tab
    choose the small plus sign

    Give this config and name in the text box

    Add the default username

    In the next pane down again choose the little plus sign
    Choose Username

    Fill in the blanks with your security info..

    Now open your SOAP request that needed the security header

    Choose the 'Aut' tab at the bottom

    in the WSS dropdown you should see the configuration name - choose it and you are done..