Is this the correct place to ask this question?<br><br>I am using openSAML to build a simple SP.<br><br>I know in a standard way, we use this to get the Response object:<br> BasicSAMLMessageContext messageContext = new BasicSAMLMessageContext();<br>
messageContext.setInboundMessageTransport( new HttpServletRequestAdapter(request) );<br> <br> HTTPPostDecoder decoder = new HTTPPostDecoder();<br> decoder.decode( messageContext );<br>
Response rsp = (Response) context.getInboundMessage(); <br><br>Suppose now I don't have the HttpServletRequest. What I have is plain XML string like:<br><br><span class="e"><samlp:Response </span><span class="am">Destination</span>="<span class="ad"></span><span class="e">..."></span><br>
<span class="e"><saml:Issuer </span><span class="am">xmlns:saml</span>="<span class="ad">urn:oasis:names:tc:SAML:2.0:assertion</span>"<span class="e">></span><br> <span class="e"></saml:Issuer</span><span class="e">></span><br>
...<br> ...<br></smalp:Response><br><br>What method should I call the parse this XML string into Response object?<br><br><br>Best,<br clear="all">Yaowen<br>