cancel
Showing results for 
Search instead for 
Did you mean: 

Web service 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

jbarrez
Star Contributor
Star Contributor
I don't believe ws-security support is implemented.
You will have to use your own custom service tasks to call the webservice with security.

cricetoteam
Champ in-the-making
Champ in-the-making
Hi,
thank u very much.
i hope to find a way to create my service tasks correctly, probably without security for now .
Good Job
Ester