This discussion is archived
4 Replies Latest reply: Oct 26, 2012 11:09 PM by 968199 RSS

Problem on Socket Adapter

968199 Newbie
Currently Being Moderated
COMPOSITE.XML

<?xml version="1.0" encoding="UTF-8" ?>
<!-- Generated by Oracle SOA Modeler version 1.0 at [10/29/08 2:01 PM]. -->
<composite name="SOAComposite1"
revision="23.0"
label="2008-10-29_14-01-57_765"
mode="active"
state="on"
xmlns="http://xmlns.oracle.com/sca/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:orawsp="http://schemas.oracle.com/ws/2006/01/policy"
xmlns:ui="http://xmlns.oracle.com/soa/designer/">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/socket/helloworld-socket/SOAComposite1/HelloWorldClient/"
location="HelloWorldClient.wsdl" importType="wsdl"/>
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/socket/helloworld-socket/SOAComposite1/HelloWorldServer/"
location="HelloWorldServer.wsdl" importType="wsdl"/>
<service name="HelloWorldClient" ui:wsdlLocation="HelloWorldClient.wsdl">
<interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/socket/helloworld-socket/SOAComposite1/HelloWorldClient/#wsdl.interface(InboundRequestReply_ptt)"/>
<binding.jca config="HelloWorldClient_tcp.jca"/>
</service>
<component name="BPELProcess1">
<implementation.bpel src="BPELProcess1.bpel"/>
<property name="partnerLink.HelloWorldClient.dedicated.connection"
type="xs:string" many="false">dedicated.connection</property>
</component>
<reference name="HelloWorldServer" ui:wsdlLocation="HelloWorldServer.wsdl">
<interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/socket/helloworld-socket/SOAComposite1/HelloWorldServer/#wsdl.interface(OutboundRequestReply_ptt)"/>
<binding.jca config="HelloWorldServer_tcp.jca"/>
</reference>
<wire>
<source.uri>HelloWorldClient</source.uri>
<target.uri>BPELProcess1/HelloWorldClient</target.uri>
</wire>
<wire>
<source.uri>BPELProcess1/HelloWorldServer</source.uri>
<target.uri>HelloWorldServer</target.uri>
</wire>
</composite>
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
THIS IS THE BPEL PROCESS

<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Oracle JDeveloper BPEL Designer

Created: Wed Oct 29 14:04:36 IST 2008
Author: sshirgup
Purpose: Empty BPEL Process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<process name="BPELProcess1"
targetNamespace="http://xmlns.oracle.com/helloworld-socket/SOAComposite1/BPELProcess1"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:client="http://xmlns.oracle.com/helloworld-socket/SOAComposite1/BPELProcess1"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/socket/helloworld-socket/SOAComposite1/HelloWorldClient/"
xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/socket/helloworld-socket/SOAComposite1/HelloWorldServer/"
xmlns:ns3="http://xmlns.oracle.com/HelloWorld">

<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
PARTNERLINKS
List of services participating in this BPEL process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<partnerLinks>
<partnerLink myRole="InboundRequestReply_role" name="HelloWorldClient"
partnerLinkType="ns1:InboundRequestReply_plt"/>
<partnerLink name="HelloWorldServer" partnerRole="OutboundRequestReply_role"
partnerLinkType="ns2:OutboundRequestReply_plt"/>
</partnerLinks>

<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
VARIABLES
List of messages and XML documents used within this BPEL process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<variables>
<variable name="Receive_1_InboundRequestReply_InputVariable"
messageType="ns1:HelloWorldProcessRequest_msg_requsest"/>
<variable name="Reply_1_InboundRequestReply_OutputVariable"
messageType="ns1:HelloWorldProcessResponse_msg_reply"/>
<variable name="Invoke_1_OutboundRequestReply_InputVariable"
messageType="ns2:HelloWorldProcessRequest_msg_requsest"/>
<variable name="Invoke_1_OutboundRequestReply_OutputVariable"
messageType="ns2:HelloWorldProcessResponse_msg_reply"/>
</variables>

<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<sequence name="main">
<receive name="Receive_1" createInstance="yes"
variable="Receive_1_InboundRequestReply_InputVariable"
partnerLink="HelloWorldClient"
portType="ns1:InboundRequestReply_ptt"
operation="InboundRequestReply">
<bpelx:property name="wsa.replyToPortType"
variable="Reply_1_InboundRequestReply_OutputVariable"
part="HelloWorldProcessResponse"
query="/ns3:HelloWorldProcessResponse/ns3:result"/>
</receive>
<assign name="Assign_1">
<copy>
<from variable="Receive_1_InboundRequestReply_InputVariable"
part="HelloWorldProcessRequest"
query="/ns3:HelloWorldProcessRequest/ns3:input"/>
<to variable="Invoke_1_OutboundRequestReply_InputVariable"
part="HelloWorldProcessRequest"
query="/ns3:HelloWorldProcessRequest/ns3:input"/>
</copy>
</assign>
<invoke name="Invoke_1"
inputVariable="Invoke_1_OutboundRequestReply_InputVariable"
outputVariable="Invoke_1_OutboundRequestReply_OutputVariable"
partnerLink="HelloWorldServer"
portType="ns2:OutboundRequestReply_ptt"
operation="OutboundRequestReply"/>
<assign name="Assign_2">
<copy>
<from variable="Invoke_1_OutboundRequestReply_OutputVariable"
part="HelloWorldProcessResponse"
query="/ns3:HelloWorldProcessResponse/ns3:result"/>
<to variable="Reply_1_InboundRequestReply_OutputVariable"
part="HelloWorldProcessResponse"
query="/ns3:HelloWorldProcessResponse/ns3:result"/>
</copy>
</assign>
<reply name="Reply_1"
variable="Reply_1_InboundRequestReply_OutputVariable"
partnerLink="HelloWorldClient"
portType="ns1:InboundRequestReply_ptt"
operation="InboundRequestReply"/>
</sequence>
</process>

Its a socket adapter program which has an inboundrequest/reply opeartion for socket adapter in exposed service and one outbound request/reply of socket adapter in the external refference.A bpel is connecting both.

My Soa_server1 showing server socket connection error()
for port 5686

Earnestly waiting for the reply
  • 1. Re: Problem on Socket Adapter
    vladodias Guru
    Currently Being Moderated
    My Soa_server1 showing server socket connection error()
    for port 5686
    Very hard to understand what you are trying to achieve... By the above message looks like you have a connectivity problem...

    Is the server on? Are you able to do telnet <socket-server-hostname> 5686 from the soa server?

    What's your socket jca configuration?

    Cheers,
    Vlad
  • 2. Re: Problem on Socket Adapter
    873582 Newbie
    Currently Being Moderated
    Hi,

    Are you able to resolve your issue, let me know if i can help you on the theory.

    Regards
    Murali
  • 3. Re: Problem on Socket Adapter
    968199 Newbie
    Currently Being Moderated
    The Jca connection configuration for the left swim lane

    <adapter-config name="NewSocket1" adapter="Socket Adapter" wsdlLocation="NewSocket1.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">

    <connection-factory location="eis/socket/InboundSocketAdapter" adapterRef=""/>
    <endpoint-activation portType="InboundRequestReply_ptt" operation="InboundRequestReply" UITransmissionPrimitive="InboundRequestReply">
    <activation-spec className="oracle.tip.adapter.socket.SocketActivationSpec">
    <property name="Host" value="localhost"/>
    <property name="Port" value="5686"/>
    <property name="TransMode" value="XSLT"/>
    <property name="Xslt" value="xsl/request.xsl"/>
    <property name="ReplyXslt" value="xsl/reply.xsl"/>

    </activation-spec>
    </endpoint-activation>

    </adapter-config>

    For Right Swim Lane JCA configuration is

    <adapter-config name="Socket2" adapter="Socket Adapter" wsdlLocation="Socket2.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">

    <connection-factory location="eis/socket/OutboundSocketAdapter" adapterRef=""/>
    <endpoint-interaction portType="OutboundRequestReply_ptt" operation="OutboundRequestReply" UITransmissionPrimitive="OutboundRequestReply">
    <interaction-spec className="oracle.tip.adapter.socket.SocketInteractionSpec">
    <property name="Host" value="192.168.1.20"/>
    <property name="Port" value="5686"/>
    <property name="TransMode" value="XSLT"/>
    <property name="Xslt" value="xsl/invoke.xsl"/>

    </interaction-spec>
    </endpoint-interaction>

    </adapter-config>
  • 4. Re: Problem on Socket Adapter
    968199 Newbie
    Currently Being Moderated
    Hi Murali,

    Can u tell me some of the steps I need to configure in the weblogic console as well as in the xml part for socket adapter in soa before starting the sample

    program of socket adapter?


    I would hopefully wait for your reply

    ThankYou

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points