This content has been marked as final.
Show 3 replies
-
1. Re: Error generate-service
zazzaz Oct 24, 2007 5:51 AM (in response to 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 -
2. Re: Error generate-service
agusgr Oct 24, 2007 6:43 AM (in response to zazzaz)Please, post the code or a fragment
Agus -
3. Re: Error generate-service
zazzaz Oct 25, 2007 4:10 AM (in response to 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