用BPEL要访问已经部署好的EJB模块

用JDeveloper把当前EJB模块部署到oracle oc4j.

然后在BPEL生成Partnerlink并利用wsdl文件访问EJB模块就正常.

测试了一下内容:

在BPEL console里测试, 如果输入aaa 就会返回000值, 不然就返回111值的简单的例子.

但是换成weblogic 8.1 version来做以上的操作就报错.

用JDeveloper来开发EJB模块并部署到WEBLOGIC SERVER是正常的.

这时候在BPEL console里, BPEL process之中invoke activity(connect EJB module)报以下错误.

<messages>
<input>
<getCustomerName_InputVariable>
<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="key">
<key>111</key>
</part>
</getCustomerName_InputVariable>
</input>
<fault>
<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
<part name="summary">
<summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
</summary>
</part>
</remoteFault>
</fault>
</messages>



reference:

wsdl file-

<?xml version = '1.0' encoding = 'UTF-8'?>
<!--Generated by the Oracle JDeveloper Web Services WSDL Generator-->
<!--Date Created: Wed Mar 19 16:20:20 KST 2008-->
<definitions
name="MyWebService1"
targetNamespace="http://test1/SessionEJB.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://test1/SessionEJB.wsdl"
xmlns:ns1="http://test1/SessionEJB.xsd"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<types>
<schema
targetNamespace="http://test1/SessionEJB.xsd"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://www.w3.org/2001/XMLSchema"/>
</types>
<message name="getCustomerName0Request">
<part name="key" type="xsd:string"/>
</message>
<message name="getCustomerName0Response">
<part name="return" type="xsd:string"/>
</message>
<portType name="SessionEJBPortType">
<operation name="getCustomerName">
<input name="getCustomerName0Request" message="tns:getCustomerName0Request"/>
<output name="getCustomerName0Response" message="tns:getCustomerName0Response"/>
</operation>
</portType>
<binding name="SessionEJBBinding" type="tns:SessionEJBPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getCustomerName">
<soap:operation soapAction="" style="rpc"/>

<input name="getCustomerName0Request">
<soap:body use="encoded" namespace="MyWebService1" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output name="getCustomerName0Response">
<soap:body use="encoded" namespace="MyWebService1" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="MyWebService1">
<port name="SessionEJBPort" binding="tns:SessionEJBBinding">
<soap:address location="http://tonykim:8888/WeblogicAppTest-Test1-context-root/MyWebService1"
wsdl:required="true"/>
</port>
</service>
</definitions>





--------------------------------------------------
SOApub技术论坛
www.soapub.com

你可能感兴趣的:(oracle bpel)