Title: Message

The reason u are getting

 

And I get following xml output:

<samlp:AuthzDecisionQuery saml:ID="00001">
 <Subject>[EMAIL PROTECTED]</Subject>
 <Subject saml:SessionIndex="1234567890"/> 
</samlp:AuthzDecisionQuery>

is because of this

 

 <field name="sessionIndex" get-method="getSessionIndex" set-method="setSessionIndex" type="java.lang.String">
  <bind-xml name="saml:SessionIndex" node="attribute" location="Subject"/>
 </field>
 <field name="subjectNameId" get-method="getSubjectNameId" set-method="setSubjectNameId" type="java.lang.String">
  <bind-xml name="saml:Subject" node="element"/>
 </field>

 

In the above, the bind-xml for sessionIndex and subjectNameId  are different.

 

Have you tried the following ?

 

<field name="sessionIndex" get-method="getSessionIndex" set-method="setSessionIndex" type="java.lang.String">
  <bind-xml name="saml:SessionIndex" node="attribute" location="Subject"/>
 </field>
 <field name="subjectNameId" get-method="getSubjectNameId" set-method="setSubjectNameId" type="java.lang.String">
  <bind-xml name=" saml:SessionIndex " node="text" location=”Subject”/>
 </field>

 

 

 

 

 

 

-----Original Message-----
From: Gawde, Kiran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 11:35 AM
To: '[EMAIL PROTECTED]'
Subject: Re: [castor-user] Help using location

 

Hi Sudhi,

 

As per the mapping file spec, possible values for node are as below:

 

node        ( attribute | element | text )    #IMPLIED

 

I tried using 'text'. But it doesn't honor location attribute!

 

Regards,

Kiran

-----Original Message-----
From: Sudhendra Seshachala [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 11:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-user] Help using location

Try the following (In Red)

 

Thanks

Sudhi

 

-----Original Message-----
From: Gawde, Kiran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 11:03 AM
To: [EMAIL PROTECTED]
Subject: [castor-user] Help using location

 

Hi,

 

I am trying to use location as below:

<class name="com.xxx.security.saml.AuthzDecisionQuery">
 <description>Mapping for class com.xxx.security.saml.AuthzDecisionQuery</description>
 <map-to xml="samlp:AuthzDecisionQuery"/>

 <field name="id" get-method="getId" set-method="setId" type="java.lang.String">
  <bind-xml name="saml:ID" node="attribute"/>
 </field>
 <field name="sessionIndex" get-method="getSessionIndex" set-method="setSessionIndex" type="java.lang.String">
  <bind-xml name="saml:SessionIndex" node="attribute" location="Subject"/>
 </field>
 <field name="subjectNameId" get-method="getSubjectNameId" set-method="setSubjectNameId" type="java.lang.String">
  <bind-xml name="saml:Subject" node="value" location="Subject"/>
 </field>

</class>

 

And I get following xml output:

<samlp:AuthzDecisionQuery saml:ID="00001">
 <Subject>[EMAIL PROTECTED]</Subject>
 <Subject saml:SessionIndex="1234567890"/> 
</samlp:AuthzDecisionQuery>

 

But what I expect is:

<samlp:AuthzDecisionQuery saml:ID="00001">
 <Subject saml:SessionIndex="1234567890">[EMAIL PROTECTED]</Subject>
</samlp:AuthzDecisionQuery>

 

How can I do that? Is it a bug?

 

Thanks,

Kiran

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to