Hi all, 

after i've managed to get the bpel-helloWorld example to run succesfully, i've 
tried to implement my own helloWorld example however i am getting the following 
exceptions:




  | 
  | 12:35:19,078 ERROR [ProblemHandler] could not read wsdl document 
(HelloWorld.bpel)
  | javax.wsdl.WSDLException: WSDLException (at /definitions): 
faultCode=INVALID_WSDL: Expected element 
'{http://schemas.xmlsoap.org/wsdl/}definitions'.
  |         at 
com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(WSDLReaderImpl.java:2080)
  |         at 
com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:233)
  |         at 
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2265)
  |         at 
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2229)
  |         at 
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2282)
  |         at 
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2303)
  |         at 
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2335)
  |         at 
org.jbpm.bpel.xml.BpelReader.readImportWsdlDefinition(BpelReader.java:519)
  | 
  | 
  | 
  | 12:37:21,531 ERROR [ProblemHandler] could not read wsdl document 
(HelloWorld.bpel)
  | javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem 
parsing 'HelloWorldArtifacts.wsdl'.: org.xml.sax.SAXParseException: Premature 
end of file.
  |         at 
com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2111)
  |         at 
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2303)
  |         at 
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2335)
  |         at 
org.jbpm.bpel.xml.BpelReader.readImportWsdlDefinition(BpelReader.java:519)
  |         at org.jbpm.bpel.xml.BpelReader.readImports(BpelReader.java:447)
  |         at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:296)
  |         at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:204)
  | 
  | 
  | 

These are my .bpel, .wsdl and *Artifacts.Wsdl file:



  | 
  | 
  | <?xml version="1.0" encoding="UTF-8"?>
  | <bpws:process       exitOnStandardFault="yes" 
  |                             name="HelloWorld"
  |                             suppressJoinFailure="yes"
  |                             
targetNamespace="http://sample.bpel.org/bpel/sample";
  |                             
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable";
  |                             
xmlns:ns="http://sample.bpel.org/bpel/sampleArtifacts"; 
  |                             xmlns:tns="http://sample.bpel.org/bpel/sample";>
  |     
  |     <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"; 
location="file:/C:/dev/workspace/JBPM-BPEL-examples/examples/myHello/src/main/bpel/HelloWorld.wsdl"
 namespace="http://sample.bpel.org/bpel/sample"/>
  |     <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"; 
location="HelloWorldArtifacts.wsdl" 
namespace="http://sample.bpel.org/bpel/sampleArtifacts"/>
  |     
  |     <bpws:partnerLinks>
  |         <bpws:partnerLink myRole="Greeter" name="caller" 
partnerLinkType="ns:Greeter-Caller"/>
  |     </bpws:partnerLinks>
  |     
  |     <bpws:variables>
  |         <bpws:variable messageType="tns:helloRequest" name="request"/>
  |         <bpws:variable messageType="tns:helloResponse" name="response"/>
  |     </bpws:variables>
  |     
  |     <bpws:sequence name="MainSeq">
  |         <bpws:receive       createInstance="yes" 
  |                                     name="ReceiveName"
  |                                     operation="sayHello" 
  |                                     partnerLink="caller"
  |                                     portType="tns:HelloWorld" 
  |                                     variable="request"/>
  |         
  |         <bpws:assign        name="ComposeGreeting" 
  |                                     validate="no">
  |             <bpws:copy>
  |                 <bpws:from><![CDATA[concat('Hello, ', $request.name, 
'!')]]></bpws:from>
  |                 <bpws:to part="response" variable="response"/>
  |             </bpws:copy>
  |         </bpws:assign>
  |         
  |         <bpws:reply         name="SendGreeting" 
  |                                     operation="sayHello"
  |                                     partnerLink="caller" 
  |                                     portType="tns:HelloWorld" 
  |                                     variable="response"/>
  |             </bpws:sequence>
  | </bpws:process>
  | 
  | 


  | 
  | <?xml version="1.0"?>
  | <definitions        name="HelloWorld"
  |                     targetNamespace="http://sample.bpel.org/bpel/sample";
  |                     xmlns:tns="http://sample.bpel.org/bpel/sample";
  |                     
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype";
  |                     xmlns:xsd="http://schemas.xmlsoap.org/wsdl/"; 
  |                     xmlns:p="http://www.w3.org/2001/XMLSchema";>
  | 
  |     <xsd:message name="helloRequest">
  |             <xsd:part name="request" type="p:string"></xsd:part>
  |     </xsd:message>
  |     
  |     <xsd:message name="helloResponse">
  |             <xsd:part name="response" type="p:string"></xsd:part>
  |     </xsd:message>
  |     
  |     <portType name="HelloWorld">
  |         <operation name="sayHello">
  |             <input  message="tns:helloRequest" />
  |             <output message="tns:helloResponse"/>
  |         </operation>
  |     </portType>
  |   
  |     <plnk:partnerLinkType name="caller">
  |         <plnk:role name="Greeter-Caller" portType="tns:HelloWorld"/>
  |     </plnk:partnerLinkType>
  |        
  | </definitions>
  | 
  | 
  | 


  | 
  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <definitions xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"; 
  |              xmlns:tns="http://sample.bpel.org/bpel/sampleArtifacts"; 
  |              xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"; 
  |              xmlns:wsdl="http://sample.bpel.org/bpel/sample"; 
name="HelloWorldArtifacts" 
  |              targetNamespace="http://sample.bpel.org/bpel/sampleArtifacts"; 
  |              xmlns="http://schemas.xmlsoap.org/wsdl/";>
  | 
  |     <import 
location="C:\dev\workspace\JBPM-BPEL-examples\examples\myHello\src\main\bpel\HelloWorld.wsdl"
 namespace="http://sample.bpel.org/bpel/sample"/>
  | 
  |    <plnk:partnerLinkType name="Greeter-Caller">
  |        <plnk:role name="Greeter" portType="wsdl:HelloWorld"/>
  |    </plnk:partnerLinkType>
  | 
  |   
  | </definitions>
  | 
  | 

Can anyone suggest whats wrong in these files? 

Thanks


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137371#4137371

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137371
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to