Hi Simone,

Did you see my reply to your previous email?
http://www.nabble.com/again-Partner-Links-Type-td15185896.html#a15185896

alex


On 1/31/08, Simone Maletta <[EMAIL PROTECTED]> wrote:
>
> Hy guy,
>     I'm here again, I wish to thank you all for your suggest but nothing
> works, the problem is always there.
> I put some changed in my code, trying to import other process definitions,
> I need a portType specification to make a call.
> Here is the code:
>
> ----BPEL code --------
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>
> <process
>
> name="bank"
>
> targetNamespace="http://ode/bpel/unit-test";
>
> xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable";
>
> xmlns:tns="http://ode/bpel/unit-test";
>
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>
> xmlns:test="http://ode/bpel/bank.wsdl";
>
> xmlns:CCCheckNS="http://localhost:8080/CCCCheck.wsdl";
>
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
>
> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
>
> <import location="bankWSDL.wsdl"
>
> namespace="http://ode/bpel/bank.wsdl";
>
> importType="http://schemas.xmlsoap.org/wsdl/"/>
>
> <import location="CCCheck.wsdl"
>
> namespace="http://localhost:8080/CCCCheck.wsdl";
>
> importType="http://schemas.xmlsoap.org/wsdl/"/>
>
> <variables>
>
> <variable name="approvedVariable" type="xsd:boolean"/>
>
> <variable name="CCNumVariable" type="xsd:integer"/>
>
> <variable messageType="test:replyCCHeckMessage" name="replyCCHeckSend"/>
>
> <variable messageType="CCCheckNS:cccheckMessage"
> name="requestInvokeCCCheckSend"/>
>
> <variable messageType="test:requestCCheckMessage"
> name="requestCCheckReceive"/>
>
> <variable messageType="CCCheckNS:cccheckResponseMessage"
> name="replyInvokeCCCheckReceive"/>
>
> <variable name="4" type="xsd:boolean"/>
>
> <variable name="3" type="xsd:boolean"/>
>
> <variable name="2" type="xsd:boolean"/>
>
> <variable name="1" type="xsd:boolean"/>
>
> </variables>
>
> <partnerLinks>
>
> <partnerLink myRole="sender" name="replyCCHeck"
> partnerLinkType="test:replyCCHeckPartnerLinkType"/>
>
> <partnerLink myRole="me" name="requestInvokeCCCheck"
> partnerLinkType="test:InvokeCCCheckPartnerLinkType"/>
>
> <partnerLink partnerRole="you" name="requestCCheck"
> partnerLinkType="test:requestCCheckPartnerLinkType"/>
>
> <partnerLink partnerRole="you" name="replyInvokeCCCheck"
> partnerLinkType="test:InvokeCCCheckPartnerLinkType"/>
>
> </partnerLinks>
>
> <sequence>
>
> <assign>
>
> <copy>
>
> <from>false</from>
>
> <to variable="4"/>
>
> </copy>
>
> <copy>
>
> <from>false</from>
>
> <to variable="3"/>
>
> </copy>
>
> <copy>
>
> <from>false</from>
>
> <to variable="2"/>
>
> </copy>
>
> <copy>
>
> <from>false</from>
>
> <to variable="1"/>
>
> </copy>
>
> </assign>
>
> <flow>
>
> <!-- <sequence>
>
> <switch/>
>
> <target linkName="4to3"/>
>
> </sequence>-->
>
> <sequence>
>
> <if name="3">
>
> <condition>true</condition>
>
> <assign>
>
> <copy>
>
> <from variable="approvedVariable"/>
>
> <to part="approved" variable="replyCCHeckSend"/>
>
> </copy>
>
> <copy>
>
> <from variable="CCNumVariable"/>
>
> <to part="CCNum" variable="replyCCHeckSend"/>
>
> </copy>
>
> </assign>
>
> <invoke createInstance="yes" operation="replyCCHeckSEND"
> partnerLink="replyCCHeck" portType="replyCCHeckPortType"
> variable="replyCCHeck"/>
>
> <assign>
>
> <copy>
>
> <from>false</from>
>
> <to variable="3"/>
>
> </copy>
>
> <copy>
>
> <from>true</from>
>
> <to variable="4"/>
>
> </copy>
>
> </assign>
>
> </if>
>
> <source linkName="3to4" transitionCondition="4"/>
>
> <target linkName="3to2"/>
>
> </sequence>
>
> <sequence>
>
> <if name="4">
>
> <condition>true</condition>
>
> <assign>
>
> <copy>
>
> <from variable="CCNumVariable"/>
>
> <to part="cccheck" variable="requestInvokeCCCheckSend"/>
>
> </copy>
>
> </assign>
>
> <invoke createInstance="yes" inputVariable="requestInvokeCCCheckSend"
> operation="requestInvokeCCCheckINVOKE" outputVariable="replyInvokeCCCheck"
> partnerLink="requestInvokeCCCheck" portType="requestInvokeCCCheckPortType"/>
>
> <assign>
>
> <copy>
>
> <from part="approved" variable="requestInvokeCCCheckSend"/>
>
> <to variable="approvedVariable"/>
>
> </copy>
>
> </assign>
>
> <assign>
>
> <copy>
>
> <from>false</from>
>
> <to variable="2"/>
>
> </copy>
>
> <copy>
>
> <from>true</from>
>
> <to variable="3"/>
>
> </copy>
>
> </assign>
>
> </if>
>
> <source linkName="2to3" transitionCondition="3"/>
>
> <target linkName="2to1"/>
>
> </sequence>
>
> <sequence>
>
> <if name="5">
>
> <condition>true</condition>
>
> <receive createInstance="yes" operation="requestCCheckRECEIVE"
> partnerLink="requestCCheck" portType="requestCCheckPortType"
> variable="requestCCheck"/>
>
> <assign>
>
> <copy>
>
> <from part="CCNum" variable="requestCCheck"/>
>
> <to variable="CCNumVariable"/>
>
> </copy>
>
> </assign>
>
> <assign>
>
> <copy>
>
> <from>false</from>
>
> <to variable="1"/>
>
> </copy>
>
> <copy>
>
> <from>true</from>
>
> <to variable="2"/>
>
> </copy>
>
> </assign>
>
> </if>
>
> <source linkName="1to2" transitionCondition="2"/>
>
> </sequence>
>
> </flow>
>
> </sequence>
>
> </process>
>
> ----- WSDL code for the BPEL process-------
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>
> <definitions
>
> targetNamespace="http://ode/bpel/bank.wsdl";
>
> xmlns="http://schemas.xmlsoap.org/wsdl/";
>
> xmlns:tns="http://ode/bpel/bank.wsdl";
>
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>
> xmlns:plnk="
> http://docs.oasis-open.org/wsbpel/2.0/process/executable/plnktype";
>
> xmlns:CCCheckNS="http:8080/localhost/CCCheck">
>
> <!--
>
> <import location="CCCheck.wsdl"
>
> namespace="http://localhost:8080/CCCheck.wsdl";
>
> importType="http://schemas.xmlsoap.org/wsdl/"/>-->
>
> <wsdl:message name="replyCCHeckMessage">
>
> <wsdl:part name="approved" type="xsd:boolean"/>
>
> <wsdl:part name="CCNum" type="xsd:integer"/>
>
> </wsdl:message>
>
> <wsdl:message name="requestCCheckMessage">
>
> <wsdl:part name="CCNum" type="xsd:integer"/>
>
> </wsdl:message>
>
>
>
> <wsdl:portType name="replyCCHeckPortType">
>
> <wsdl:operation name="replyCCHeck">
>
> <wsdl:input message="tns:replyCCHeckMessage"/>
>
> </wsdl:operation>
>
> </wsdl:portType>
>
> <wsdl:binding name="replyCCHeckSOAPBinding"
> type="tns:replyCCHeckPortType">
>
> <soap:binding style="document" transport="
> http://schemas.xmlsoap.org/soap/jms"/>
>
> <wsdl:operation name="replyCCHeck"/>
>
> </wsdl:binding>
>
> <wsdl:portType name="requestCCheckPortType">
>
> <wsdl:operation name="requestCCheck">
>
> <wsdl:output message="tns:requestCCheckMessage"/>
>
> </wsdl:operation>
>
> </wsdl:portType>
>
> <wsdl:binding name="requestCCheckSOAPBinding"
> type="tns:requestCCheckPortType">
>
> <soap:binding style="document" transport="
> http://schemas.xmlsoap.org/soap/jms"/>
>
> <wsdl:operation name="requestCCheck"/>
>
> </wsdl:binding>
>
> <plnk:partnerLinkType name="replyCCHeckPartnerLinkType">
>
> <plnk:role name="send">
>
> <plnk:portType name="tns:replyCCHeckPortType"/>
>
> </plnk:role>
>
> </plnk:partnerLinkType>
>
> <plnk:partnerLinkType name="InvokeCCCheckPartnerLinkType">
>
> <plnk:role name="invoke" portType="CCCheckNS:CCCheckPortType"/>
>
> <plnk:role name="response" portType="CCCheckNS:CCCheckPortType"/>
>
> </plnk:partnerLinkType>
>
>
> <plnk:partnerLinkType name="requestCCheckPartnerLinkType">
>
> <plnk:role name="you">
>
> <plnk:portType name="tns:requestCCheckMessagePortType"/>
>
> </plnk:role>
>
> </plnk:partnerLinkType>
>
> <wsdl:service name="bank">
>
> <wsdl:port binding="replyInvokeCCCheckSOAPBinding"
> name="replyInvokeCCCheckPort">
>
> <soap:address location="
> http://localhost:8080/ode/processes/replyInvokeCCCheck"/>
>
> </wsdl:port>
>
> <wsdl:port binding="requestCCheckSOAPBinding" name="requestCCheckPort">
>
> <soap:address location="http://localhost:8080/ode/processes/requestCCheck
> "/>
>
> </wsdl:port>
>
> </wsdl:service>
>
>
> </definitions>
>
>
>
>
>
> ----WSDL server-service-------
>
> <wsdl:definitions xmlns:axis2="http://localhost:8080/CCCCheck.wsdl";
> xmlns:ns="http://ws.apache.org/axis2/xsd"; xmlns:wsdl="
> http://schemas.xmlsoap.org/wsdl/"; xmlns:http="
> http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soap="
> http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:mime="
> http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:soap12="
> http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:wsaw="
> http://www.w3.org/2006/05/addressing/wsdl"; targetNamespace="
> http://localhost:8080/CCCCheck.wsdl";><wsdl:types><xs:schema xmlns:xs="
> http://www.w3.org/2001/XMLSchema"; attributeFormDefault="qualified"
> elementFormDefault="qualified" targetNamespace="
> http://ws.apache.org/axis2/xsd";>
>
> <xs:element name="cccheck">
>
> <xs:complexType>
>
> <xs:sequence>
>
> <xs:element name="param0" nillable="true" type="xs:int"></xs:element>
>
> </xs:sequence>
>
> </xs:complexType>
>
> </xs:element>
>
> <xs:element name="cccheckResponse">
>
> <xs:complexType>
>
> <xs:sequence>
>
> <xs:element name="return" nillable="true" type="xs:boolean"></xs:element>
>
> </xs:sequence>
>
> </xs:complexType>
>
> </xs:element>
>
> <xs:element name="delete">
>
> <xs:complexType>
>
> <xs:sequence>
>
> <xs:element name="param0" nillable="true" type="xs:string"></xs:element>
>
> <xs:element name="param1" nillable="true" type="ns:Tuple"></xs:element>
>
> </xs:sequence>
>
> </xs:complexType>
>
> </xs:element>
>
> <xs:element name="Tuple" type="ns:Tuple"></xs:element>
>
> <xs:complexType name="Tuple">
>
> <xs:sequence></xs:sequence>
>
> </xs:complexType>
>
> <xs:element name="modify">
>
> <xs:complexType>
>
> <xs:sequence>
>
> <xs:element name="param0" nillable="true" type="xs:string"></xs:element>
>
> <xs:element name="param1" nillable="true" type="ns:Tuple"></xs:element>
>
> </xs:sequence>
>
> </xs:complexType>
>
> </xs:element>
>
> <xs:element name="setSessionContext">
>
> <xs:complexType>
>
> <xs:sequence>
>
> <xs:element name="param0" nillable="true" type="xs:anyType"></xs:element>
>
> </xs:sequence>
>
> </xs:complexType>
>
> </xs:element>
>
> </xs:schema></wsdl:types><wsdl:message name="cccheckMessage"><wsdl:part
> name="part1" element="ns:cccheck"></wsdl:part></wsdl:message><wsdl:message
> name="cccheckResponseMessage"><wsdl:part name="part1"
> element="ns:cccheckResponse"></wsdl:part></wsdl:message><wsdl:message
> name="deleteMessage"><wsdl:part name="part1"
> element="ns:delete"></wsdl:part></wsdl:message><wsdl:message
> name="modifyMessage"><wsdl:part name="part1"
> element="ns:modify"></wsdl:part></wsdl:message><wsdl:message
> name="ejbActivateMessage"></wsdl:message><wsdl:message
> name="ejbCreateMessage"></wsdl:message><wsdl:message
> name="ejbPassivateMessage"></wsdl:message><wsdl:message
> name="ejbRemoveMessage"></wsdl:message><wsdl:message
> name="setSessionContextMessage"><wsdl:part name="part1"
> element="ns:setSessionContext"></wsdl:part></wsdl:message><wsdl:portType
> name="CCCheckPortType"><wsdl:operation name="cccheck"><wsdl:input
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
> wsaw:Action="urn:cccheck"
> message="axis2:cccheckMessage"></wsdl:input><wsdl:output
> message="axis2:cccheckResponseMessage"
> wsaw:Action="urn:cccheck"></wsdl:output></wsdl:operation><wsdl:operation
> name="delete"><wsdl:input xmlns:wsaw="
> http://www.w3.org/2006/05/addressing/wsdl"; wsaw:Action="urn:delete"
> message="axis2:deleteMessage"></wsdl:input></wsdl:operation><wsdl:operation
> name="modify"><wsdl:input xmlns:wsaw="
> http://www.w3.org/2006/05/addressing/wsdl"; wsaw:Action="urn:modify"
> message="axis2:modifyMessage"></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbActivate"><wsdl:input xmlns:wsaw="
> http://www.w3.org/2006/05/addressing/wsdl"; wsaw:Action="urn:ejbActivate"
> message="axis2:ejbActivateMessage"></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbCreate"><wsdl:input xmlns:wsaw="
> http://www.w3.org/2006/05/addressing/wsdl"; wsaw:Action="urn:ejbCreate"
> message="axis2:ejbCreateMessage"></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbPassivate"><wsdl:input xmlns:wsaw="
> http://www.w3.org/2006/05/addressing/wsdl"; wsaw:Action="urn:ejbPassivate"
> message="axis2:ejbPassivateMessage"></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbRemove"><wsdl:input xmlns:wsaw="
> http://www.w3.org/2006/05/addressing/wsdl"; wsaw:Action="urn:ejbRemove"
> message="axis2:ejbRemoveMessage"></wsdl:input></wsdl:operation><wsdl:operation
> name="setSessionContext"><wsdl:input xmlns:wsaw="
> http://www.w3.org/2006/05/addressing/wsdl";
> wsaw:Action="urn:setSessionContext"
> message="axis2:setSessionContextMessage"></wsdl:input></wsdl:operation></wsdl:portType><wsdl:binding
> name="CCCheckSOAP11Binding" type="axis2:CCCheckPortType"><soap:binding
> transport="http://schemas.xmlsoap.org/soap/http";
> style="document"></soap:binding><wsdl:operation
> name="cccheck"><soap:operation soapAction="urn:cccheck"
> style="document"></soap:operation><wsdl:input><soap:body
> use="literal"></soap:body></wsdl:input><wsdl:output><soap:body
> use="literal"></soap:body></wsdl:output></wsdl:operation><wsdl:operation
> name="delete"><soap:operation soapAction="urn:delete"
> style="document"></soap:operation><wsdl:input><soap:body
> use="literal"></soap:body></wsdl:input></wsdl:operation><wsdl:operation
> name="modify"><soap:operation soapAction="urn:modify"
> style="document"></soap:operation><wsdl:input><soap:body
> use="literal"></soap:body></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbActivate"><soap:operation soapAction="urn:ejbActivate"
> style="document"></soap:operation><wsdl:input><soap:body
> use="literal"></soap:body></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbCreate"><soap:operation soapAction="urn:ejbCreate"
> style="document"></soap:operation><wsdl:input><soap:body
> use="literal"></soap:body></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbPassivate"><soap:operation soapAction="urn:ejbPassivate"
> style="document"></soap:operation><wsdl:input><soap:body
> use="literal"></soap:body></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbRemove"><soap:operation soapAction="urn:ejbRemove"
> style="document"></soap:operation><wsdl:input><soap:body
> use="literal"></soap:body></wsdl:input></wsdl:operation><wsdl:operation
> name="setSessionContext"><soap:operation soapAction="urn:setSessionContext"
> style="document"></soap:operation><wsdl:input><soap:body
> use="literal"></soap:body></wsdl:input></wsdl:operation></wsdl:binding><wsdl:binding
> name="CCCheckSOAP12Binding" type="axis2:CCCheckPortType"><soap12:binding
> transport="http://schemas.xmlsoap.org/soap/http";
> style="document"></soap12:binding><wsdl:operation
> name="cccheck"><soap12:operation soapAction="urn:cccheck"
> style="document"></soap12:operation><wsdl:input><soap12:body
> use="literal"></soap12:body></wsdl:input><wsdl:output><soap12:body
> use="literal"></soap12:body></wsdl:output></wsdl:operation><wsdl:operation
> name="delete"><soap12:operation soapAction="urn:delete"
> style="document"></soap12:operation><wsdl:input><soap12:body
> use="literal"></soap12:body></wsdl:input></wsdl:operation><wsdl:operation
> name="modify"><soap12:operation soapAction="urn:modify"
> style="document"></soap12:operation><wsdl:input><soap12:body
> use="literal"></soap12:body></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbActivate"><soap12:operation soapAction="urn:ejbActivate"
> style="document"></soap12:operation><wsdl:input><soap12:body
> use="literal"></soap12:body></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbCreate"><soap12:operation soapAction="urn:ejbCreate"
> style="document"></soap12:operation><wsdl:input><soap12:body
> use="literal"></soap12:body></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbPassivate"><soap12:operation soapAction="urn:ejbPassivate"
> style="document"></soap12:operation><wsdl:input><soap12:body
> use="literal"></soap12:body></wsdl:input></wsdl:operation><wsdl:operation
> name="ejbRemove"><soap12:operation soapAction="urn:ejbRemove"
> style="document"></soap12:operation><wsdl:input><soap12:body
> use="literal"></soap12:body></wsdl:input></wsdl:operation><wsdl:operation
> name="setSessionContext"><soap12:operation
> soapAction="urn:setSessionContext"
> style="document"></soap12:operation><wsdl:input><soap12:body
> use="literal"></soap12:body></wsdl:input></wsdl:operation></wsdl:binding><wsdl:service
> name="CCCheck"><wsdl:port name="CCCheckSOAP11port"
> binding="axis2:CCCheckSOAP11Binding"><soap:address location="
> http://this.value.is.repalced.by.jbossCCCheck";></soap:address></wsdl:port><wsdl:port
> name="CCCheckSOAP12port"
> binding="axis2:CCCheckSOAP12Binding"><soap12:address location="
> http://this.value.is.repalced.by.jbossCCCheck
> "></soap12:address></wsdl:port></wsdl:service></wsdl:definitions>
>
>
>
> As you may see the last one is build automatically using axis2 tool
> starting from a Java Session Bean.
>
> Compiling all I always have the same error: UndeclaredPartnerLinkType:
> Attempt to reference to undeclared partner link type {
> http://localhost:8080/bank.wsdl}  this for every partner link I define in
> the code.
>
> Please someone has got a solution? Problems come from namespaces
> definitions? There is an error defining partner link types in the wsdl? Why
> I've got no problem reference Message?
>
> Please HELP ME!!
>
> Best regards to all
>
> Simone
>

Reply via email to