Results 1 to 5 of 5

Thread: Password in policy.xml contains the "&" character

  1. #1
    Join Date
    Mar 2013
    Posts
    9

    Default Password in policy.xml contains the "&" character

    We are using spring-ws to generate a web service client which is secure and requires an username and password.

    The password contains the "&" character. In order to get permit the parsing of the policy.xml, we had to convert the "&" to "&", but when the password in placed into the SOAP ws security tag, it is not translated back.

    How could the situation be handled?

  2. #2
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    432

    Default

    Hi

    SOAP WS-Security Header element is XML just like policy.xml and there "&" means "&" like in every XML document. When it will be read on the other side it will be read as "&".

    regards
    Grzegorz Grzybek

  3. #3
    Join Date
    Mar 2013
    Posts
    9

    Default

    Thanks for the reply, but that does not appear to be true for the password tag within the UserToken element of SOAP WS-Security Header.

  4. #4
    Join Date
    Oct 2008
    Location
    Poland, Wrocław
    Posts
    432

    Default

    So how does your ws-security header look like?

  5. #5
    Join Date
    Mar 2013
    Posts
    9

    Default

    Grzegorz,

    I just confirmed that what my code is generating is the same string for the password as was generated by SOAPUI, with the "&" in place for the "&". I will now have to work with the developers of the web service to determine what the problem is.

    Thanks for your quick replies.
    Bill

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •