Skip to Content.
Sympa Menu

shibboleth-dev - Re: Intercepting or capturing the AQM

Subject: Shibboleth Developers

List archive

Re: Intercepting or capturing the AQM


Chronological Thread 
  • From: Alistair Young <>
  • To: "Shahzad Younas" <>
  • Cc: <>
  • Subject: Re: Intercepting or capturing the AQM
  • Date: Mon, 21 Mar 2005 10:00:25 +0000

Shahzad,
modify the AA and bung this in, before it does anything else. You'll need the javax.xml.soap jars:

MessageFactory f = MessageFactory.newInstance();
MimeHeaders mimeHeaders = new MimeHeaders();
mimeHeaders.addHeader("Content-Type", "text/xml");
SOAPMessage m = f.createMessage(mimeHeaders, request.getInputStream());
m.writeTo(new FileOutputStream(new File("/Users/alistair/Desktop/SOAPAttributeQuery.xml")));
request.getInputStream().reset();

don't forget that last line or the rest of the AA won't work! and of course change the second last line or you'll fill up my desktop ;)

Alistair


On 20 Mar 2005, at 15:26, Shahzad Younas wrote:

Hi,
 
Can anyone tell me how can I capture or intercept the HTTP POST which the SHIRE does to the AA for an attribute query? I am making a httpconnection in Java and I am trying to "automate" a user logging in.
 
I want to just capture that message, and then later POST it to the AA myself.
 
Many thanks
Shahzad



Archive powered by MHonArc 2.6.16.

Top of Page