Author: objectiser
Date: 2010-10-20 07:35:01 -0400 (Wed, 20 Oct 2010)
New Revision: 1046
Modified:
trunk/docs/docbook/userguide/src/main/module/esb.xml
trunk/runtime/jbossesb-bpel/src/main/java/org/jboss/soa/esb/actions/bpel/BPELInvoke.java
Log:
RIFTSAW-190 - added documentation and shortened the part name property.
Modified: trunk/docs/docbook/userguide/src/main/module/esb.xml
===================================================================
--- trunk/docs/docbook/userguide/src/main/module/esb.xml 2010-10-19 10:34:42 UTC (rev
1045)
+++ trunk/docs/docbook/userguide/src/main/module/esb.xml 2010-10-20 11:35:01 UTC (rev
1046)
@@ -263,6 +263,41 @@
</listitem>
</orderedlist>
</section>
+
+ <section>
+ <title>SAML Support</title>
+
+ <para>
+ If the ESB service uses PicketLink to obtain a SAML token, then this assertion
+ can be passed to the invoked BPEL process, using the
<emphasis>requestSAMLPartName</emphasis>
+ property.
+ </para>
+
+ <informalexample>
+ <programlisting role="XML" ><![CDATA[
+<action name="action2"
class="org.jboss.soa.esb.actions.bpel.BPELInvoke">
+ <property name="service"
value="{http://simple_invoke/helloworld}HelloHeaderWSService"/>
+ <property name="operation" value="sayHi" />
+ <property name="requestPartName" value="sayHello" />
+ <property name="responsePartName" value="sayHelloResponse" />
+ <property name="requestSAMLPartName" value="Security" />
+</action>
+ ]]></programlisting>
+ </informalexample>
+
+ <para>
+ The part name identified by the
<emphasis>requestSAMLPartName</emphasis> must be
+ defined as a WS-Security Security element, e.g.
+ </para>
+
+ <informalexample>
+ <programlisting role="XML" ><![CDATA[
+<part name="Security" element="wsse:Security"
+
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-...
/>
+ ]]></programlisting>
+ </informalexample>
+
+ </section>
</section>
</chapter>
Modified:
trunk/runtime/jbossesb-bpel/src/main/java/org/jboss/soa/esb/actions/bpel/BPELInvoke.java
===================================================================
---
trunk/runtime/jbossesb-bpel/src/main/java/org/jboss/soa/esb/actions/bpel/BPELInvoke.java 2010-10-19
10:34:42 UTC (rev 1045)
+++
trunk/runtime/jbossesb-bpel/src/main/java/org/jboss/soa/esb/actions/bpel/BPELInvoke.java 2010-10-20
11:35:01 UTC (rev 1046)
@@ -49,7 +49,7 @@
private static final String TOP_LEVEL_ELEMENT_NAME = "message";
protected static final String REQUEST_PART_NAME = "requestPartName";
- protected static final String REQUEST_SAML_ASSERTION_PART_NAME =
"requestSAMLAssertionPartName";
+ protected static final String REQUEST_SAML_PART_NAME = "requestSAMLPartName";
protected static final String RESPONSE_PART_NAME = "responsePartName";
protected static final String SERVICE = "service";
protected static final String PORT = "port";
@@ -213,7 +213,7 @@
}
protected void establishHeaderParts(ESBInvocationAdapter invocationContext) {
- String
requestSAMLAssertionPartName=_config.getAttribute(REQUEST_SAML_ASSERTION_PART_NAME);
+ String requestSAMLAssertionPartName=_config.getAttribute(REQUEST_SAML_PART_NAME);
if (requestSAMLAssertionPartName != null) {