Thanks for your help now it deploys. But now i have a different issue. I
changed rpc to document as you suggested.
Now im getting a new error when i access the webservice. Im using SoapUI to
create my SOAP Test

Again Thanks for any help

#####ERROR######
ERROR - GeronimoLog.error(108) | Error processing response for MEX
{MyRoleMex#hqejbhcnphr2jrxh4xvf4x
 [Client hqejbhcnphr2jrxh4xvf4w] calling {Test4}Test4Service.process(...)}
org.apache.axis2.AxisFault:
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailu
re No results for expression: {OXPath10Expression /tns:result}
        at org.apache.ode.axis2.ODEService.onResponse(ODEService.java:221)
        at
org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:173)
        at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java
:69)
        at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java
:50)
        at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:9
6)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUt
ils.java:275)
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)



#### BPEL #####

<?xml version="1.0" encoding="UTF-8"?>
<bpws:process exitOnStandardFault="yes" name="Test4"
    suppressJoinFailure="yes" targetNamespace="Test4"
    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable";
xmlns:tns="Test4">
    <bpws:import importType="http://schemas.xmlsoap.org/wsdl/";
        location="Test4.wsdl" namespace="Test4"/>
    <bpws:partnerLinks>
        <bpws:partnerLink myRole="Test4Provider" name="client"
partnerLinkType="tns:Test4"/>
    </bpws:partnerLinks>
    <bpws:variables>
        <bpws:variable messageType="tns:Test4RequestMessage" name="input"/>
        <bpws:variable messageType="tns:Test4ResponseMessage"
name="output"/>
    </bpws:variables>
    <bpws:sequence name="main">
        <bpws:receive createInstance="yes" name="receiveInput"
            operation="process" partnerLink="client"
            portType="tns:Test4" variable="input"/>
        <bpws:assign name="Assign" validate="no">
            <bpws:copy>
                <bpws:from part="payload" variable="input">
                    <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:input]]></bpws:query>
                </bpws:from>
                <bpws:to part="payload" variable="output">
                    <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:result]]></bpws:query>
                </bpws:to>
            </bpws:copy>
        </bpws:assign>
        <bpws:reply name="replyOutput" operation="process"
            partnerLink="client" portType="tns:Test4" variable="output"/>
    </bpws:sequence>
</bpws:process>


#### WSDL #####

<?xml version="1.0"?>
<definitions name="Test4"
        targetNamespace="Test4"
        xmlns:tns="Test4"
        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="Test4" 
                xmlns="http://www.w3.org/2001/XMLSchema";>

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

            <element name="Test4Response">
                <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="Test4RequestMessage">
        <part name="payload" element="tns:Test4Request"/>
    </message>
    <message name="Test4ResponseMessage">
        <part name="payload" element="tns:Test4Response"/>
    </message>
    
  

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

    <!-- portType implemented by the Test4 BPEL process -->
    <portType name="Test4">
        <operation name="process">
            <input  message="tns:Test4RequestMessage" />
            <output message="tns:Test4ResponseMessage"/>
        </operation>
    </portType>

    <binding name="Test4SOAPBinding" type="tns:Test4">
        <soap:binding style="document"
                transport="http://schemas.xmlsoap.org/soap/http"; />
        <operation name="process">
                <soap:operation soapAction="Test4/process" />
                <input>
                        <soap:body use="literal" />
                </input>
                <output>
                        <soap:body use="literal" />
                </output>
        </operation>
    </binding>
    <service name="Test4Service">
        <port name="Test4Port" binding="tns:Test4SOAPBinding">
            <soap:address
location="http://localhost:8080/ode/processes/Test4"/>
        </port>
    </service>
    
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     PARTNER LINK TYPE DEFINITION
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->    
    <plnk:partnerLinkType name="Test4">
        <plnk:role name="Test4Provider" portType="tns:Test4"/>
    </plnk:partnerLinkType>
    
   
</definitions>



#### DEPLOY ####
<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03";
        xmlns:pns="Test4" 
        xmlns:wns="Test4">


        <process name="pns:Test4">
                <active>true</active>
                <provide partnerLink="client">
                        <service name="wns:Test4Service" port="Test4Port"/>
                </provide>
        </process>
</deploy>

### SOAP TEST####

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope";
xmlns:tes="Test4">
   <soap:Header/>
   <soap:Body>
      <tes:Test4Request>
         <tes:input>Input Message</tes:input>
      </tes:Test4Request>
   </soap:Body>
</soap:Envelope>


###SOAP OUT####

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
   <soapenv:Body>
      <soapenv:Fault
xmlns:soapenv="http://docs.oasis-open.org/wsbpel/2.0/process/executable";>
         <soapenv:Code
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
            <soapenv:Value>soapenv:selectionFailure</soapenv:Value>
         </soapenv:Code>
         <soapenv:Reason
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
            <soapenv:Text
xml:lang="en-US">{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure
No results for expression: {OXPath10Expression /tns:result}</soapenv:Text>
         </soapenv:Reason>
         <soapenv:Detail
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


-- 
View this message in context: 
http://www.nabble.com/Problems-with-ODE-1.1-Release-tf4355659.html#a12415716
Sent from the Apache Ode User mailing list archive at Nabble.com.

Reply via email to