Hi all,
I tried to reference a wsdl document in bpel-definition.xml that is not in the process archive, but on the web. What happened is that the ant service-generator task failed with the exception
org.jbpm.bpel.xml.BpelException: first role's port type not found [/process/partnerLinks/partnerLink[1]]
at org.jbpm.bpel.xml.BpelReader.readPartnerLink(BpelReader.java:729)
at org.jbpm.bpel.xml.BpelReader.readPartnerLinks(BpelReader.java:686)
at org.jbpm.bpel.xml.BpelReader.readScope(BpelReader.java:408)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:206)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:162)
at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser.java:28)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:46)
at org.jbpm.bpel.ant.ServiceGeneratorTask.execute(ServiceGeneratorTask.java:28)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
The import in my bpel-definition.xml file looks like the following:
<wsdl namespace="urn:sampleservice" location="http://localhost/SampleService?wsdl"/>
Is it possible, to reference wsdl documents on the web in bpel-definition.xml files? And, if not, is there a reason for this?
Regards,
stone_42