Subject: Error sending Attribute Query
Date: 2013-09-18 15:39:50
From: Lawrence Perkins
Source: error-sending-attribute-query
----------------------------------------------------------------------

 

I'm sure this is a simple misundertanding on my part. I've processed an assertion from an IdP and now I need to send an Attribute Query but am receiving an error when I try to send the SAML request.

 

 

            Dim mycert As X509Certificates.X509Certificate2

'load mycert here


        Dim attlist As New List(Of AttributeDesignator)

        attlist.Add(New AttributeDesignator("urn:mace:dir:attribute-def:eduPersonPrincipalName", "urn:mace:shibboleth:1.0:attributeNamespace:uri"))

        attlist.Add(New AttributeDesignator("urn:mace:dir:attribute-def:eduPersonScopedAffiliation", "urn:mace:shibboleth:1.0:attributeNamespace:uri"))

 


            Dim myreq As New ComponentPro.Saml1.Request

            Dim myqry As New ComponentPro.Saml1.AttributeQuery

            myqry.Subject = mysub

'mysub is subject from the original assertion

            myqry.AttributeDesignators = attlist

            myreq.Queries.Add(myqry)

            myreq.Sign(mycert)

 

            myresp = myreq.Send(myurl, SoapVersion.Soapv12)

'myurl is the attribute service location -  and I've tried Soapv11 as well

 

 
On this last line I get the exception "Unable to send SAML request over SOAP."
 
Am I missing something from request/query - or am I using the component incorrectly?
 
Thanks.
---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index