ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <dch...@gmail.com>
Subject Re: Unable to access WSDL definition to activate MyRole endpoint
Date Tue, 02 Oct 2007 12:43:58 GMT
And Here is my wsdl file:
<?xml version="1.0"?>
<definitions name="RandomColor"
        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="http://schemas.xmlsoap.org/wsdl/"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     TYPE DEFINITION - List of types participating in this BPEL process
     The BPEL Designer will generate default request and response types
     but you can define or import any XML Schema type and use them as part
     of the message types.
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
    <types>
        <schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
                targetNamespace="http://sample.bpel.org/bpel/sample"
                xmlns="http://www.w3.org/2001/XMLSchema">

            <element name="RandomColorRequest">
                <complexType>
                    <sequence>
                        <element name="input" type="string"/>
                    </sequence>
                </complexType>
            </element>

            <element name="RandomColorResponse">
                <complexType>
                    <sequence>
                        <element name="result" type="string"/>
                    </sequence>
                </complexType>
            </element>
        </schema>
    </types>


<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     MESSAGE TYPE DEFINITION - Definition of the message types used as
     part of the port type defintions
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
    <message name="RandomColorRequestMessage">
        <part name="payload" element="tns:RandomColorRequest"/>
    </message>
    <message name="RandomColorResponseMessage">
        <part name="payload" element="tns:RandomColorResponse"/>
    </message>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     PORT TYPE DEFINITION - A port type groups a set of operations into
     a logical service unit.
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->

    <!-- portType implemented by the RandomColor BPEL process -->
    <portType name="RandomColor">
        <operation name="getRandomColor">
            <input  message="tns:RandomColorRequestMessage" />
            <output message="tns:RandomColorResponseMessage"/>
        </operation>
    </portType>


<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     PARTNER LINK TYPE DEFINITION
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
    <plnk:partnerLinkType name="RandomColor">
        <plnk:role name="RandomColorProvider" portType="tns:RandomColor"/>
    </plnk:partnerLinkType>

    <binding name="RandomColorBinding" type="tns:RandomColor">
        <soap:binding style="rpc"
            transport="http://schemas.xmlsoap.org/soap/http" />
        <operation name="getRandomColor">
            <soap:operation
                soapAction="
http://sample.bpel.org/bpel/sample/getRandomColor" />
            <input>
                <soap:body use="literal"
                    namespace="http://sample.bpel.org/bpel/sample" />
            </input>
            <output>
                <soap:body use="literal"
                    namespace="http://sample.bpel.org/bpel/sample" />
            </output>
        </operation>
    </binding>
    <service name="RandomColorService">
        <port name="RandomColorPort" binding="tns:RandomColorBinding">
            <soap:address location="
http://localhost:8080/ode/processes/RandomColorService"></soap:address>
        </port>
    </service>
</definitions>


On 10/2/07, Chris <dchris@gmail.com> wrote:
>
> Hi,
>
> When trying to deploy my process, I get the following error in the logs:
> ERROR - GeronimoLog.error(108) | Deployment of RandomColor failed,
> aborting for now.
> org.apache.ode.bpel.iapi.ContextException: Unable to access WSDL
> definition to activate MyRole endpoint for service {
> http://sample.bpel.org/bpel/sample}RandomColor<http://sample.bpel.org/bpel/sample%7DRandomColor>and
port RandomColorPort
>
> Here is my deploy.xml:
> <deploy xmlns=" http://www.apache.org/ode/schemas/dd/2007/03"
>         xmlns:pns="http://sample.bpel.org/bpel/sample" xmlns:wns1="http://diceserver.utbm.fr"
> xmlns:wns2="http://colorserver.utbm.fr">
>   <process name="pns:RandomColor">
>     <active>true</active>
>     <provide partnerLink="client">
>       <service name="pns:RandomColor" port="RandomColorPort"/>
>     </provide>
>     <invoke partnerLink="randomVal">
>       <service name="wns1:DiceServer" port="DiceServerSOAP11port_http"/>
>     </invoke>
>     <invoke partnerLink="colorVal">
>       <service name="wns2:ColorServer" port="ColorServerSOAP11port_http"/>
>
>     </invoke>
>   </process>
> </deploy>
>
> Here are my imports in the BPEL:
> <?xml version="1.0" encoding="UTF-8"?>
> <bpws:process exitOnStandardFault="yes" name="RandomColor"
>     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:ns0=" http://diceserver.utbm.fr"
>     xmlns:tns="http://sample.bpel.org/bpel/sample" xmlns:xsd="http://colorserver.utbm.fr
> ">
>     <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="
> RandomColor.wsdl" namespace=" http://sample.bpel.org/bpel/sample"/>
>     <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="
> DiceServer.wsdl" namespace=" http://diceserver.utbm.fr"/>
>     <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="
> RandomColorArtifacts.wsdl " namespace="
> http://sample.bpel.org/bpel/sampleArtifacts"/>
>     <bpws:import importType="http://schemas.xmlsoap.org/wsdl/ " location="
> ColorServer.wsdl" namespace="http://colorserver.utbm.fr"/>
>     <bpws:partnerLinks>
>         <bpws:partnerLink myRole="RandomColorProvider" name="client"
> partnerLinkType="tns:RandomColor"/>
>         <bpws:partnerLink name="randomVal" partnerLinkType="ns:DicePLT"
> partnerRole="DiceProvider"/>
>         <bpws:partnerLink name="colorVal" partnerLinkType="ns:ColorPLT"
> partnerRole="ColorProvider"/>
>     </bpws:partnerLinks>
>
> I found a similar problem on the mailing list and it was a non-matching
> namespace problem. However, I think that my namespaces are matching here:
> * <bpws:import importType=" http://schemas.xmlsoap.org/wsdl/" location="
> RandomColor.wsdl" namespace="http://sample.bpel.org/bpel/sample"/>
> * xmlns:pns="http://sample.bpel.org/bpel/sample"
>
> What is wrong in my deploy.xml?
>
> Thanks Chris.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message