cancel
Showing results for 
Search instead for 
Did you mean: 

Web service task invocation with HTTPS

cricetoteam
Champ in-the-making
Champ in-the-making
:geek:  Hi,
i'm starting to use Activiti designer from eclipse addon.
In the examples regarding web services invocation i can't find a way to add/manage HTTPS security to my xml.

How can i add this ws-security header in the file xml of the example under this??

<soapenv:Header>
      <wsseSmiley Frustratedecurity soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-
open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsu:Timestamp wsu:Id="Timestamp-13641289" xmlns:wsu="http://docs.oasis-
open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsu:Created>2009-10-07T09:20:06Z</wsu:Created>
            <wsu:Expires>2009-10-18T23:06:46Z</wsu:Expires>
         </wsu:Timestamp>
         <wsse:UsernameToken wsu:Id="UsernameToken-4925357" xmlns:wsu="http://docs.oasis-
open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>ester</wsse:Username>
            <wsseSmiley Tongueassword Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-
token-profile-1.0#PasswordText">ester</wsseSmiley Tongueassword>
            <wsse:Nonce>BPaRQnPH7VpwZN0x6B5FpQ==</wsse:Nonce>
            <wsu:Created>2009-10-07T09:20:06.807Z</wsu:Created>
         </wsse:UsernameToken>
      </wsseSmiley Frustratedecurity>
   </soapenv:Header>
   <soapenv:Body>




Example of activi web service:


<definitions id="definitions" targetNamespace="org.activiti.enginge.impl.webservice">
<import importType="http://schemas.xmlsoap.org/wsdl/" location="http://localhost:63081/counter?wsdl" namespace="http://webservice.activiti.org/'/>

<process id="webServiceInvocation">
<startEvent id="theStart"/>
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="webService"/>
<serviceTask id="webService" name="Web service invocation" implementation="##WebService" operationRef="tns:incOperation"/>
<sequenceFlow id="flow2" sourceRef="webService" targetRef="theEnd"/>
<endEvent id="theEnd"/>
</process>
<itemDefinition id="incRequestItem" structureRef="counter:inc"/>
<!– QName of input element –>
<!– NEEDED FOR THE ARGUMENTS –>
<itemDefinition id="incResponseItem" structureRef="counter:incResponse"/>
<!– QName of output element –>
<message id="incRequestMessage" itemRef="tns:incRequestItem"/>
<message id="incResponseMessage" itemRef="tns:incResponseItem"/>

<!–
Interface: implementationRef = QName of WSDL Port Type
–>

<interface name="Counter Interface">
<!– NEEDED FOR THE PORT –>

<!–
Operation: implementationRef = QName of WSDL Operation
–>

<operation id="incOperation" name="Increase Operation" implementationRef="counter:inc">
<!– NEEDED FOR THE OPERATION NAME –>
<inMessageRef>tns:incRequestMessage</inMessageRef>
<outMessageRef>tns:incResponseMessage</outMessageRef>
</operation>
</interface>
</definitions>



Please help me ! i'm really confused! Smiley Indifferent
Thanks, Ester
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

I saw you already got some answers from the Linkedin group.
At this moment we don't have support for the BPMN 2.0 web service task in the Activiti Designer.
So the best option is to use a Java service task with CXF logic to implement the web service request.

Best regards,

cricetoteam
Champ in-the-making
Champ in-the-making
Hi,
i'm glad to see your answer  Smiley Wink .
I'm looking for a way to menage different web services in soa architecture, wich are all implemented with https and ws-sec security. As soon as i realize how to do it, i'll be pleased to share it with the comunity.
Cheers,
Ester