Announcement Announcement Module
Collapse
No announcement yet.
Password in policy.xml contains the "&" character Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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.

      Comment


      • #4
        So how does your ws-security header look like?

        Comment


        • #5
          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

          Comment

          Working...
          X