Skip to Content.
Sympa Menu

mace-opensaml-users - Remove <?xml version="1.0" encoding="UTF-8"?>

Subject: OpenSAML user discussion

List archive

Remove <?xml version="1.0" encoding="UTF-8"?>


Chronological Thread 
  • From: Guzman Llambias <>
  • To:
  • Subject: Remove <?xml version="1.0" encoding="UTF-8"?>
  • Date: Wed, 24 Feb 2010 09:06:17 -0200 (UYST)

Hi! I generated a signed SAML token and I want to use it in a
RequestSecurityToken message of the WS-Trust specificaction. Unfortunately,
when I serialize the message and put it in the soap message, it also puts the
comment <?xml version="1.0" encoding="UTF-8"?>. Is there a way to remove it
using the api? if not, do you know a way to do so that doesn't break the
signature?

thanks in advance!
Guzman

Here's an example of the problem

<soap:envelope>
<soap:header>
...
</soap:header>
<soap:body>
<wst:RequestSecurityToken>
...
<Base>
<?xml version="1.0" encoding="UTF-8"?><saml1:Assertion
xmlns:saml1="urn:oasis:names:tc:SAML:1.0:assertion"
AssertionID="_6a44ae30d9a7ea65cc313ec28d70a7f4"
IssueInstant="2010-02-12T17:08:12.328Z" Issuer="Agesic" MajorVersion="1"
MinorVersion="0">
...
</saml1:Assertion>
</Base>
</wst:RequestSecurityToken>
</soap:body>
</soap:envelope>



Archive powered by MHonArc 2.6.16.

Top of Page