Hello Matthieu,
With a little bit of playing around I have managed to find the process
(helloProcess) using the Management API.
However, when I visit http://localhost:8080/ode/services/listServices,
the process still does not appear on the list.
Here is my deploy.xml:
<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:tns="http://service.idcor.src">
<process name="tns:helloProcess">
<active>true</active>
<invoke partnerLink="helloPartnerLink">
<service name="tns:helloService" port="helloServiceSOAP11port_http" />
</invoke>
</process>
</deploy>
Here is my helloProcess.bpel
<bpws:process exitOnStandardFault="yes" name="helloProcess"
suppressJoinFailure="yes" targetNamespace="http://service.idcor.src"
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ns="http://service.idcor.srcArtifacts"
xmlns:tns="http://service.idcor.src">
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="helloProcessArtifacts.wsdl"
namespace="http://service.idcor.srcArtifacts"/>
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="helloService.wsdl" namespace="http://service.idcor.src"/>
<bpws:partnerLinks>
<bpws:partnerLink name="helloPartnerLink"
partnerLinkType="ns:helloServicePartnerLinkType"
partnerRole="you"/>
</bpws:partnerLinks>
<bpws:variables>
<bpws:variable messageType="tns:helloResponse"
name="helloServiceLinkResponse"/>
<bpws:variable messageType="tns:helloRequest"
name="helloServiceLinkRequest"/>
</bpws:variables>
<bpws:sequence>
<bpws:invoke inputVariable="helloServiceLinkRequest"
name="Invoke_Hello" operation="hello"
outputVariable="helloServiceLinkResponse"
partnerLink="helloPartnerLink"
portType="tns:helloServicePortType"/>
</bpws:sequence>
</bpws:process>
Here is my helloProcessArtifacts.wsdl:
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:tns="http://service.idcor.srcArtifacts"
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
xmlns:wsdl="http://service.idcor.src" name="helloProcessArtifacts"
targetNamespace="http://service.idcor.srcArtifacts">
<plnk:partnerLinkType name="helloServicePartnerLinkType">
<plnk:role name="me" portType="wsdl:helloServicePortType"/>
<plnk:role name="you" portType="wsdl:helloServicePortType"/>
</plnk:partnerLinkType>
<import location="helloService.wsdl"
namespace="http://service.idcor.src"/>
</definitions>
Here is my helloService.wsdl:
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:ns0="http://service.idcor.src"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
targetNamespace="http://service.idcor.src">
<wsdl:documentation>helloService</wsdl:documentation>
<wsdl:types>
<xs:schema xmlns:ns="http://service.idcor.src"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://service.idcor.src">
<xs:element name="helloResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return"
nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="helloParam">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="s"
nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="helloParamResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return"
nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="helloRequest"/>
<wsdl:message name="helloResponse">
<wsdl:part name="parameters" element="ns0:helloResponse"/>
</wsdl:message>
<wsdl:message name="helloParamRequest">
<wsdl:part name="parameters" element="ns0:helloParam"/>
</wsdl:message>
<wsdl:message name="helloParamResponse">
<wsdl:part name="parameters" element="ns0:helloParamResponse"/>
</wsdl:message>
<wsdl:portType name="helloServicePortType">
<wsdl:operation name="hello">
<wsdl:input message="ns0:helloRequest" wsaw:Action="urn:hello"/>
<wsdl:output message="ns0:helloResponse"
wsaw:Action="urn:helloResponse"/>
</wsdl:operation>
<wsdl:operation name="helloParam">
<wsdl:input message="ns0:helloParamRequest"
wsaw:Action="urn:helloParam"/>
<wsdl:output message="ns0:helloParamResponse"
wsaw:Action="urn:helloParamResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="helloServiceSOAP11Binding"
type="ns0:helloServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<wsdl:operation name="hello">
<soap:operation soapAction="urn:hello" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="helloParam">
<soap:operation soapAction="urn:helloParam" 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="helloServiceSOAP12Binding"
type="ns0:helloServicePortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<wsdl:operation name="hello">
<soap12:operation soapAction="urn:hello" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="helloParam">
<soap12:operation soapAction="urn:helloParam" 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="helloServiceHttpBinding"
type="ns0:helloServicePortType">
<http:binding verb="POST"/>
<wsdl:operation name="hello">
<http:operation location="helloService/hello"/>
<wsdl:input>
<mime:content type="text/xml" part="hello"/>
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="hello"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="helloParam">
<http:operation location="helloService/helloParam"/>
<wsdl:input>
<mime:content type="text/xml" part="helloParam"/>
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="helloParam"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="helloService">
<wsdl:port name="helloServiceSOAP11port_http"
binding="ns0:helloServiceSOAP11Binding">
<soap:address
location="http://localhost:8080/axis2/services/helloService"/>
</wsdl:port>
<wsdl:port name="helloServiceSOAP12port_http"
binding="ns0:helloServiceSOAP12Binding">
<soap12:address
location="http://localhost:8080/axis2/services/helloService"/>
</wsdl:port>
<wsdl:port name="helloServiceHttpport"
binding="ns0:helloServiceHttpBinding">
<http:address
location="http://localhost:8080/axis2/services/helloService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Cheers!
~Adam
Matthieu Riou wrote:
Hi Adam,
That's pretty strange, you don't seem to have any error or exception at
deployment. Does your process declare any <provide> element in your
deploy.xml ? I don't have anything else that could give you that type of
behavior on top of my head, so if it's not a missing <provide> I'd create a
Jira issue and attach your process to it. That way I can have a look at the
whole thing and see what's wrong.
Cheers,
Matthieu
On 3/31/08, Adam Nowak <[EMAIL PROTECTED]> wrote:
Good Afternoon,
I have created a BPEL process called helloProcess. The process calls a
web-service which takes no parameters and returns the string "Hello".
Every time I go to deploy the process, a .cbp file is generated, however
helloProcess does not show up in my ODE Process list
(http://localhost:8080/ode/services/listServices).
Here is the output of my stdout log for Tomcat:
DEBUG - GeronimoLog.debug(66) | Process store event:
{ProcessStoreEvent#DEPLOYED:{http://service.idcor.src}helloParamProcess-32
}
DEBUG - GeronimoLog.debug(66) | Ignoring store event:
{ProcessStoreEvent#DEPLOYED:{http://service.idcor.src}helloParamProcess-32
}
DEBUG - GeronimoLog.debug(66) | Process store event:
{ProcessStoreEvent#ACTVIATED:{
http://service.idcor.src}helloParamProcess-32}
DEBUG - GeronimoLog.debug(66) | register:
{http://service.idcor.src}helloParamProcess-32
DEBUG - GeronimoLog.debug(66) | Registering process
{http://service.idcor.src}helloParamProcess-32 with server.
DEBUG - GeronimoLog.debug(66) | Activating
{http://service.idcor.src}helloParamProcess-32
DEBUG - GeronimoLog.debug(66) | Activated
{http://service.idcor.src}helloParamProcess-32
DEBUG - GeronimoLog.debug(66) | Rehydrating process
{http://service.idcor.src}helloParamProcess-32
DEBUG - GeronimoLog.debug(66) | Processing <invoke> element for process
{http://service.idcor.src}helloParamProcess-32: partnerlink
helloPartnerLink -->
{http://service.idcor.src}helloService:helloServiceSOAP11port_http
DEBUG - GeronimoLog.debug(66) | Setting external service with empty
namespace replication
DEBUG - GeronimoLog.debug(66) | Created external service
{http://service.idcor.src}helloService
DEBUG - GeronimoLog.debug(66) | Activated
{http://service.idcor.src}helloParamProcess-32 partnerrole
helloPartnerLink: EPR is [EMAIL PROTECTED]
DEBUG - GeronimoLog.debug(66) | Creating process DAO for
{http://service.idcor.src}helloParamProcess-32(guid=hqejbhcnphr35qs4ifkfq4)
INFO - GeronimoLog.info(79) | Registered process
{http://service.idcor.src}helloParamProcess-32.
INFO - GeronimoLog.info(79) | Deployment of artifact bpelTest
successful: [{http://service.idcor.src}helloParamProcess-32]
PS. I am new to BPEL + Apache ODE so any help would be greatly
appreciated.
Cheers!
~Adam