[jboss-user] [JBoss jBPM] - Re: Error generate-service

2007-10-25 Thread ZazzaZ
A correct (I mean with respect with jbpm-bpel implementation) bpel is 


  | 
  | ?xml version=1.0 encoding=UTF-8?
  | process name=Login targetNamespace=http://j2ee.netbeans.org/wsdl/Login;
  |   xmlns=http://schemas.xmlsoap.org/ws/2003/03/business-process/;
  |   xmlns:bpel=http://schemas.xmlsoap.org/ws/2003/03/business-process/;
  |   xmlns:tns=http://j2ee.netbeans.org/wsdl/Login;
  |   xmlns:coac=http://j2ee.netbeans.org/wsdl/ControlloAccesso; 
xmlns:sch=http://xml.netbeans.org/schema/LoginTypes;
  |   xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  |   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |   
xsi:schemaLocation=http://schemas.xmlsoap.org/ws/2003/03/business-process/
  |   http://schemas.xmlsoap.org/ws/2003/03/business-process/;
  | 
  |   partnerLinks
  | 
  | !-- relationship with the ticket issuer --
  | partnerLink name=rec partnerLinkType=tns:loginPLT
  |   myRole=loginRole /
  | 
  | !-- relationship with the ATM --
  |  partnerLink name=ca partnerLinkType=tns:CAPLT 
partnerRole=ProcessRole / 
  | 
  |   /partnerLinks
  | 
  |   variables
  | !-- ATM connection request --
  | variable name=lor messageType=tns:loginoprep /
  | !-- ticket creation request --
  | variable name=cao messageType=coac:ControlloAccessoOperationReply 
/ 
  | !-- ticket number wrapper --
  | variable name=cai 
messageType=coac:ControlloAccessoOperationRequest / 
  | !-- ATM connection flag --
  | variable name=cr messageType=tns:loginopreq /
  | 
  | variable name=temp type=sch:Identificato /
  | 
  |   /variables
  | 
  | 
  |   sequence
  | 
  | !-- receive a connection request --
  | receive operation=loginop partnerLink=rec
  |   portType=tns:loginPT variable=cr createInstance=yes /
  | 
  | assign
  | 
  | copy
  | from expression=bpel:getVariableData('cr', 'inRequest')/
  | to variable=lor part=outResponse 
query=/outResponse/sch:Esito /
  | /copy
  | 
  | /assign
  | 
  | !-- send the ticket number back to the ATM --
  | reply operation=loginop partnerLink=rec
  |   portType=tns:loginPT variable=lor/
  | 
  |   /sequence
  | 
  | /process
  | 
  | 

while this one is not accepted by service generator


  | 
  | ?xml version=1.0 encoding=UTF-8?
  | process name=Login targetNamespace=http://j2ee.netbeans.org/wsdl/Login;
  |   xmlns=http://schemas.xmlsoap.org/ws/2003/03/business-process/;
  |   xmlns:bpel=http://schemas.xmlsoap.org/ws/2003/03/business-process/;
  |   xmlns:ns1=http://j2ee.netbeans.org/wsdl/Login;
  |   xmlns:ns2=http://j2ee.netbeans.org/wsdl/ControlloAccesso; 
xmlns:ns3=http://xml.netbeans.org/schema/LoginTypes;
  |   xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  |   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |   
xsi:schemaLocation=http://schemas.xmlsoap.org/ws/2003/03/business-process/
  |   http://schemas.xmlsoap.org/ws/2003/03/business-process/;
  | 
  |   partnerLinks
  | 
  | !-- relationship with the ticket issuer --
  | partnerLink name=rec partnerLinkType=ns1:loginPLT
  |   myRole=loginRole /
  | 
  | !-- relationship with the ATM --
  |  partnerLink name=ca partnerLinkType=ns1:CAPLT 
partnerRole=ProcessRole / 
  | 
  |   /partnerLinks
  | 
  |   variables
  | !-- ATM connection request --
  | variable name=lor messageType=ns1:loginoprep /
  | !-- ticket creation request --
  | variable name=cao messageType=ns2:ControlloAccessoOperationReply 
/ 
  | !-- ticket number wrapper --
  | variable name=cai messageType=ns2:ControlloAccessoOperationRequest 
/ 
  | !-- ATM connection flag --
  | variable name=cr messageType=ns1:loginopreq /
  | 
  | variable name=temp type=ns3:Identificato /
  | 
  |   /variables
  | 
  | 
  |   sequence
  | 
  | !-- receive a connection request --
  | receive operation=loginop partnerLink=rec
  |   portType=ns1:loginPT variable=cr createInstance=yes /
  | 
  | assign
  | 
  | copy
  | from expression=bpel:getVariableData('cr', 'inRequest')/
  | to variable=lor part=outResponse 
query=/outResponse/ns3:Esito /
  | /copy
  | 
  | /assign
  | 
  | !-- send the ticket number back to the ATM --
  | reply operation=loginop partnerLink=rec
  |   portType=ns1:loginPT variable=lor/
  | 
  |   /sequence
  | 
  | /process
  | 
  | 

ZazzaZ

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098699#4098699

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098699
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Error generate-service

2007-10-24 Thread ZazzaZ
Hi,
I got the same error on another project. 
I found that namespace 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://schemas.xmlsoap.org/ws/2003/03/business-process/
  http://schemas.xmlsoap.org/ws/2003/03/business-process/;
is vital and moreover that namespace alias with numbers are NOT allowed.

E.g. 
NO xmlns:ns1=http://j2ee.netbeans.org/wsdl/ControlloAccesso;

YES xmlns:coac=http://j2ee.netbeans.org/wsdl/ControlloAccesso;
 
I hope this helps someone. Bye
  

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098206#4098206

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098206
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Error generate-service

2007-10-24 Thread agusgr
Please, post the code or a fragment

Agus

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098235#4098235

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098235
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user