I deploy a simple BPEL process which implemented Add or subtract on Apache
ODE .The path of WSDL which described BPEL process is
"http://localhost:8080/ode/processes/CalcServicePort?wsdl"; . 
I test this BPEL process through web services Explorer which is myeclipse
plugin, this test is successful.
But I want to invoke this BPEL process from java Applications .So I try to
invoke this web service through
org.codehaus.xfire.client.Client.Invoke(),but this test is failure,i meet an
error which is "selectionFailure".
How can invoke this web service on java Applications as  general web
services .
thanks!

the content of wsdl  :
<schema xmlns="http://www.w3.org/2001/XMLSchema";
xmlns:wsdl="http://ode/bpel/unit-test.wsdl";
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://www.icrm.org/test/";>
<complexType name="CalcServiceProcessRequest">
 <sequence>
  <element name="type" type="string" /> 
  <element name="left" type="int" /> 
  <element name="right" type="int" /> 
  </sequence>
  </complexType>
 <complexType name="CalcServiceProcessResponse">
 <sequence>
  <element name="result" type="int" /> 
  </sequence>
  </complexType>
  <element name="CalcServiceProcessRequest"
type="tns:CalcServiceProcessRequest" /> 
  <element name="CalcServiceProcessResponse"
type="tns:CalcServiceProcessResponse" /> 
  </schema>
 <wsdl:message name="CalcServiceProcessRequestMessage">
  <wsdl:part name="payload" element="tns:CalcServiceProcessRequest" /> 
  </wsdl:message>
 <wsdl:message name="CalcServiceProcessResponseMessage">
  <wsdl:part name="payload" element="tns:CalcServiceProcessResponse" /> 
  </wsdl:message>
 <wsdl:portType name="CalcServicePortPortType">
 <wsdl:operation name="process">
  <wsdl:input message="tns:CalcServiceProcessRequestMessage"
wsaw:Action="http://www.icrm.org/test/process"; /> 
  <wsdl:output message="tns:CalcServiceProcessResponseMessage"
wsaw:Action="http://www.icrm.org/test/CalcServiceProcess/processResponse"; /> 
  </wsdl:operation>
  </wsdl:portType>
 <wsdl:binding name="CalcServicePortSOAP11Binding"
type="tns:CalcServicePortPortType">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document" /> 
 <wsdl:operation name="process">
  <soap:operation soapAction="http://www.icrm.org/test/process";
style="document" /> 
<wsdl:input>
  <soap:body use="literal" /> 
  </wsdl:input>
<wsdl:output>
  <soap:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
<wsdl:binding name="CalcServicePortSOAP12Binding"
type="tns:CalcServicePortPortType">
  <soap12:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document" /> 
<wsdl:operation name="process">
  <soap12:operation soapAction="http://www.icrm.org/test/process";
style="document" /> 
<wsdl:input>
  <soap12:body use="literal" /> 
  </wsdl:input>
 <wsdl:output>
  <soap12:body use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
<wsdl:binding name="CalcServicePortHttpBinding"
type="tns:CalcServicePortPortType">
  <http:binding verb="POST" /> 
<wsdl:operation name="process">
  <http:operation location="CalcServicePort/process" /> 
 <wsdl:input>
  <mime:content type="text/xml" part="process" /> 
  </wsdl:input>
<wsdl:output>
  <mime:content type="text/xml" part="process" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
 <wsdl:service name="CalcServicePort">
 <wsdl:port name="CalcServicePortSOAP11port_http"
binding="tns:CalcServicePortSOAP11Binding">
  <soap:address
location="http://localhost:8080/ode/processes/CalcServicePort"; /> 
  </wsdl:port>
 <wsdl:port name="CalcServicePortSOAP12port_http"
binding="tns:CalcServicePortSOAP12Binding">
  <soap12:address
location="http://localhost:8080/ode/processes/CalcServicePort"; /> 
  </wsdl:port>
 <wsdl:port name="CalcServicePortHttpport"
binding="tns:CalcServicePortHttpBinding">
  <http:address
location="http://localhost:8080/ode/processes/CalcServicePort"; /> 
  </wsdl:port>
  </wsdl:service>


-- 
View this message in context: 
http://old.nabble.com/How-can-invoke-eclipse-bpel-process-from-java-Applications-tp28720897p28720897.html
Sent from the Apache Ode User mailing list archive at Nabble.com.

Reply via email to