AnsweredAssumed Answered

Error deployement process with invoke web service

Question asked by seba1 on May 29, 2012
Hello
I try to devlop a process that invokes a Web Service.
But I have this error when a deploy the process on Activiti-explorer :

Could not find importer for type http://schemas.xmlSOAP.org/WSDL | ProcessWs.bpmn20.xml |line 9 | column 61
Could not import item of type http://schemas.xmlSOAP.org/WSDL | ProcessWs.bpmn20.xml |line 9 | column 61


the line 9 column 61 is :
<import importType="http://schemas.xmlsoap.org/wsdl/"
        location="http://localhost:63081/counter?wsdl"
        namespace="http://webservice.activiti.org/" />

Here is the description of my process
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL
    targetNamespace="http://www.bpmnwithactiviti.org"
    xmlns:tns="http://www.bpmnwithactiviti.org"
    xmlns:activiti="http://activiti.org/bpmn"
    xmlns:sales="http://ws.activitiprocessws.ig.hearc.ch">

  <import importType="http://schemas.xmlsoap.org/wsdl/"                
      location="http://localhost:8080/ActivitiProcessWS/ProcessInstWebService?wsdl"
     namespace="http://ws.activitiprocessws.ig.hearc.ch'/>
  
  <message id="findCustomerAddressRequestMessage" itemRef="tns:findCustomerAddressRequestItem" />
  <message id="findCustomerAddressResponseMessage" itemRef="tns:findCustomerAddressResponseItem" />
  
  <itemDefinition id="findCustomerAddressRequestItem" structureRef="sales:findCustomerAddress" />
  <itemDefinition id="findCustomerAddressResponseItem" structureRef="sales:findCustomerAddressResponse" />
    
  <interface name="Find customer address" implementationRef="sales:ProcessInstWebService">
    <operation id="findCustomerAddressOperation" name="Find customer address operation"  implementationRef="sales:findCustomerAddress">
      <inMessageRef>tns:findCustomerAddressRequestMessage</inMessageRef>
      <outMessageRef> tns:findCustomerAddressResponseMessage </outMessageRef>
    </operation>
  </interface>
    
  <itemDefinition id="name" structureRef="string" />
  <itemDefinition id="customerName" structureRef="string" />
  <itemDefinition id="address" structureRef="string" />
  <itemDefinition id="webserviceResponse" structureRef="string" />
    


<process id="customer">
  <startEvent id="startevent" name="Start"/>
  <sequenceFlow sourceRef="startevent"
      targetRef="webService"/>
  <serviceTask id="webService" 
      name="Find customer address web service"
      implementation="##WebService"                                      
      operationRef="tns:findCustomerAddressOperation">                   
            
    <ioSpecification>
      <dataInput
          itemSubjectRef="tns:findCustomerAddressRequestItem" 
          id="dataInput" />
      <dataOutput
          itemSubjectRef="tns:findCustomerAddressResponseItem"           
          id="dataOutput" />
          <inputSet>
        <dataInputRefs>dataInput</dataInputRefs>
      </inputSet>
      <outputSet>
        <dataOutputRefs>dataOutput</dataOutputRefs>                     
      </outputSet>
    </ioSpecification>
    <dataInputAssociation>
      <sourceRef>name</sourceRef>                                       
      <targetRef>customerName</targetRef>                                
    </dataInputAssociation>
    <dataOutputAssociation>
      <sourceRef>address</sourceRef>                                    
      <targetRef>webserviceResponse</targetRef>                          
    </dataOutputAssociation>
  </serviceTask>
  <sequenceFlow sourceRef="webService"
      targetRef="waitState"/>
  <receiveTask id="waitState" />
  <sequenceFlow sourceRef="waitState"
      targetRef="endevent" />
  <endEvent id="endevent" name="End"/>
</process>
</definitions>

thank you for your help

Outcomes