cancel
Showing results for 
Search instead for 
Did you mean: 

Could not find importer for type http://schemas.xmlsoap.org/wsdl/

Olfa_Bouchaala
Champ in-the-making
Champ in-the-making

Hello,

I am getting the following error "Could not find importer for type http://schemas.xmlsoap.org/wsdl/" when deploying the process below via Activiti Explorer.

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" 
xmlns:apachesoap="http://xml.apache.org/xml-soap"
targetNamespace="webservice.leila"
xmlns:counter="urn:Calculette"
xmlns:tns="webservice.leila"
id="definitions">

<import importType="http://schemas.xmlsoap.org/wsdl/" location="http://localhost:8080/axis2/services/ProduitService?wsdl" namespace="urn:Calculette"  />



  <process id="produit" name="produit" isExecutable="true">
    <startEvent id="startEvent1"></startEvent>
   
    <sequenceFlow id="sid-45DEDA96-C829-402F-B257-FFDC2BB64D0D" sourceRef="startEvent1" targetRef="script1"></sequenceFlow>
    

<serviceTask id="webService" name="Call WS" implementation="##WebService"
                 operationRef="ProduitOperation">

<dataInputAssociation>

<sourceRef>x</sourceRef>

<targetRef>entier1</targetRef>

</dataInputAssociation>


<dataInputAssociation>

<sourceRef>y</sourceRef>

<targetRef>entier2</targetRef>

</dataInputAssociation>


<dataOutputAssociation>

<sourceRef>Res</sourceRef>

<targetRef>resultat1</targetRef>

</dataOutputAssociation>

</serviceTask>
   


 <sequenceFlow id="sid-6B8506F0-F8FD-40E5-BD53-48B60CBA55C6" sourceRef="script1" targetRef="webService"></sequenceFlow>
    
<sequenceFlow id="sid-8B93564D-BB04-4D49-9F41-3FF3021E42F7" sourceRef="webService" targetRef="script2"></sequenceFlow>
    <scriptTask id="script1" name="Initialiaze" scriptFormat="groovy" activiti:autoStoreVariables="false">
      <script><![CDATA[String ToA="3";
	       String ToB="1000";
               entier1=ToA;
	       entier2=ToB;]]></script>
    </scriptTask>
    <endEvent id="sid-CCC04EC1-2E04-4B48-A518-38D788D538EC"></endEvent>


    <scriptTask id="script2" scriptFormat="groovy" name="Result">
          <script>
	     System.out.println(entier1+" * "+entier2+" = "Resultat1); 
         </script>
         </scriptTask>

<endEvent id="sid-C6EF7F98-3060-442E-8EC3-532F535A9C5A" name=""> </endEvent>


    <sequenceFlow id="sid-D32AC73B-B425-498D-8793-28586F575C7E" sourceRef="script2" targetRef="sid-CCC04EC1-2E04-4B48-A518-38D788D538EC"></sequenceFlow>
  </process>


 <itemDefinition id="entier1" structureRef="string" />
   <itemDefinition id="entier2" structureRef="string" />
   <itemDefinition id="x" structureRef="string" />
   <itemDefinition id="y" structureRef="string" />
   <itemDefinition id="Res" structureRef="string" />
   <itemDefinition id="resultat1" structureRef="string" />



<message id="ProduitRequestMessage" itemRef="tns:ProduitRequestItem"/>

<message id="ProduitResponseMessage" itemRef="tns:ProduitResponseItem"/>

<itemDefinition id="ProduitResponseItem" structureRef="counter:ProduiResponse"/>

<itemDefinition id="ProduitRequestItem" structureRef="counter:Produit"/>



	
<interface id="ProduitInterface" name="ProduitInterface" implementationRef="counter:Produit">


<operation id="ProduitOperation" name="ProduitOperation" implementationRef="counter:produit">

<inMessageRef>tns:ProduitRequestMessage</inMessageRef>

<outMessageRef>tns:ProduitResponseMessage</outMessageRef>

</operation>

</interface>
3 REPLIES 3

abhinavmishra14
World-Class Innovator
World-Class Innovator

You have posted duplicates here in this post as well : https://hub.alfresco.com/t5/alfresco-process-services/could-not-find-importer-for-type-http-schemas-...

Also why would you add a wsdl file in activiti process definition ? AFAIK, It is not allowed. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Sorry for duplicate post.

Regarding your question, I add a wsdl file in activiti process definition in order to call a web service via the following line:

<import importType="http://schemas.xmlsoap.org/wsdl/" location="http://localhost:8080/axis2/services/ProduitService?wsdl" namespace="urn:Calculette"  />

I am not sure if that's valid. Can't quote on this. But have a look at this project:

https://github.com/cijujoseph/activiti-examples/tree/master/aps-soap-ws-extensions

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.