AnsweredAssumed Answered

Web service invocation with HTTPS

Question asked by cricetoteam on Jul 19, 2011
Latest reply on Jul 28, 2011 by cricetoteam
: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>
      <wsse:Security 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>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-
token-profile-1.0#PasswordText">ester</wsse:Password>
            <wsse:Nonce>BPaRQnPH7VpwZN0x6B5FpQ==</wsse:Nonce>
            <wsu:Created>2009-10-07T09:20:06.807Z</wsu:Created>
         </wsse:UsernameToken>
      </wsse:Security>
   </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! :|
Thanks, Ester

Outcomes