Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi experts, i'm a newbie.. i'm sorry my english not good....

I wanna ask you about sending message from OSB (Oracle Service Bus) to webservice.
I've created a WSDL using visual studio 2008. This is my WSDL :

XML
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s1="http://tempuri.org/Services.asmx/getResponseFile" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
      <s:import namespace="http://tempuri.org/Services.asmx/getResponseFile" />
      <s:element name="ReceiveDataStatic">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="memberCode" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" ref="s1:getFileResponse" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="ReceiveDataStaticResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="ReceiveDataStaticResult" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="ReceiveDataInvestor">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="memberCode" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" ref="s1:getFileResponse" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="ReceiveDataInvestorResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="ReceiveDataInvestorResult" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="ValidatorDataInvestor">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="memberCode" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" ref="s1:getFileResponse" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="ValidatorDataInvestorResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="ValidatorDataInvestorResult" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetAck">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="memberCode" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="Quantity" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetAckResponse">
        <s:complexType />
      </s:element>
      <s:element name="MethodForFTP">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="messages" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="MethodForFTPResponse">
        <s:complexType />
      </s:element>
      <s:element name="MethodForJMS">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="messages" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="MethodForJMSResponse">
        <s:complexType />
      </s:element>
    </s:schema>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/Services.asmx/getResponseFile">
      <s:element name="getFileResponse" nillable="true" type="s1:CFileContent" />
      <s:complexType name="CFileContent">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="fileContents" type="s:base64Binary" />
          <s:element minOccurs="1" maxOccurs="1" name="sizeInBytes" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="crc32" type="s:int" />
        </s:sequence>
      </s:complexType>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="ReceiveDataStaticSoapIn">
    <wsdl:part name="parameters" element="tns:ReceiveDataStatic" />
  </wsdl:message>
  <wsdl:message name="ReceiveDataStaticSoapOut">
    <wsdl:part name="parameters" element="tns:ReceiveDataStaticResponse" />
  </wsdl:message>
  <wsdl:message name="ReceiveDataInvestorSoapIn">
    <wsdl:part name="parameters" element="tns:ReceiveDataInvestor" />
  </wsdl:message>
  <wsdl:message name="ReceiveDataInvestorSoapOut">
    <wsdl:part name="parameters" element="tns:ReceiveDataInvestorResponse" />
  </wsdl:message>
  <wsdl:message name="ValidatorDataInvestorSoapIn">
    <wsdl:part name="parameters" element="tns:ValidatorDataInvestor" />
  </wsdl:message>
  <wsdl:message name="ValidatorDataInvestorSoapOut">
    <wsdl:part name="parameters" element="tns:ValidatorDataInvestorResponse" />
  </wsdl:message>
  <wsdl:message name="GetAckSoapIn">
    <wsdl:part name="parameters" element="tns:GetAck" />
  </wsdl:message>
  <wsdl:message name="GetAckSoapOut">
    <wsdl:part name="parameters" element="tns:GetAckResponse" />
  </wsdl:message>
  <wsdl:message name="MethodForFTPSoapIn">
    <wsdl:part name="parameters" element="tns:MethodForFTP" />
  </wsdl:message>
  <wsdl:message name="MethodForFTPSoapOut">
    <wsdl:part name="parameters" element="tns:MethodForFTPResponse" />
  </wsdl:message>
  <wsdl:message name="MethodForJMSSoapIn">
    <wsdl:part name="parameters" element="tns:MethodForJMS" />
  </wsdl:message>
  <wsdl:message name="MethodForJMSSoapOut">
    <wsdl:part name="parameters" element="tns:MethodForJMSResponse" />
  </wsdl:message>
  <wsdl:portType name="ServiceSoap">
    <wsdl:operation name="ReceiveDataStatic">
      <wsdl:input message="tns:ReceiveDataStaticSoapIn" />
      <wsdl:output message="tns:ReceiveDataStaticSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="ReceiveDataInvestor">
      <wsdl:input message="tns:ReceiveDataInvestorSoapIn" />
      <wsdl:output message="tns:ReceiveDataInvestorSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="ValidatorDataInvestor">
      <wsdl:input message="tns:ValidatorDataInvestorSoapIn" />
      <wsdl:output message="tns:ValidatorDataInvestorSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetAck">
      <wsdl:input message="tns:GetAckSoapIn" />
      <wsdl:output message="tns:GetAckSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="MethodForFTP">
      <wsdl:input message="tns:MethodForFTPSoapIn" />
      <wsdl:output message="tns:MethodForFTPSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="MethodForJMS">
      <wsdl:input message="tns:MethodForJMSSoapIn" />
      <wsdl:output message="tns:MethodForJMSSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="ReceiveDataStatic">
      <soap:operation soapAction="http://tempuri.org/ReceiveDataStatic" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ReceiveDataInvestor">
      <soap:operation soapAction="http://tempuri.org/ReceiveDataInvestor" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ValidatorDataInvestor">
      <soap:operation soapAction="http://tempuri.org/ValidatorDataInvestor" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetAck">
      <soap:operation soapAction="http://tempuri.org/GetAck" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="MethodForFTP">
      <soap:operation soapAction="http://tempuri.org/MethodForFTP" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="MethodForJMS">
      <soap:operation soapAction="http://tempuri.org/MethodForJMS" 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="ServiceSoap12" type="tns:ServiceSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="ReceiveDataStatic">
      <soap12:operation soapAction="http://tempuri.org/ReceiveDataStatic" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ReceiveDataInvestor">
      <soap12:operation soapAction="http://tempuri.org/ReceiveDataInvestor" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ValidatorDataInvestor">
      <soap12:operation soapAction="http://tempuri.org/ValidatorDataInvestor" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetAck">
      <soap12:operation soapAction="http://tempuri.org/GetAck" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="MethodForFTP">
      <soap12:operation soapAction="http://tempuri.org/MethodForFTP" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="MethodForJMS">
      <soap12:operation soapAction="http://tempuri.org/MethodForJMS" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="Service">
    <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
      <soap:address location="http://10.131.10.8/TestOSB/Service.asmx" />
    </wsdl:port>
    <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
      <soap12:address location="http://10.131.10.8/TestOSB/Service.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>


When i send message from OSB to webservice, message that is received in webservice is null. I used "MethodForJms" as a methode to receive message from OSB.

This is for the message that i've sent from OSB :

XML
<Message name="dataStaticInvestor" type="IncomingMessage" >
    <List name="data">
            <Record name="data">
            <Field name="participantID">CC001</Field>
            <Field name="participantName">Mandiri Securitas</Field>
            <Field name="investorName">Tuan Tanah</Field>
            <Field name="sidNumber">OTD120300000112</Field>
            <Field name="accountNumber">CC001000000171</Field>
            <Field name="bankAccountNumber">123456789</Field>
            <Field name="bankCode">PMRT</Field>
            <Field name="activityDate">20100504</Field>
            <Field name="activity">O</Field>
            </Record>
        <Record name="data">
            <Field name="participantID">CC002</Field>
            <Field name="participantName">CIMB Niaga</Field>
            <Field name="investorName">Mr. Ling Huang</Field>
            <Field name="sidNumber">OTD12555567775</Field>
            <Field name="accountNumber">CC001000000171</Field>
            <Field name="bankAccountNumber">213459694</Field>
            <Field name="bankCode">PMRT</Field>
            <Field name="activityDate">20100903</Field>
            <Field name="activity">C</Field>
            </Record>
        <Record name="data">
            <Field name="participantID">CC003</Field>
            <Field name="participantName">BPR Bumiputera</Field>
            <Field name="investorName">Tuan Tanah</Field>
            <Field name="sidNumber">OTD120300000112</Field>
            <Field name="accountNumber">CC001000000171</Field>
            <Field name="bankAccountNumber">123456789</Field>
            <Field name="bankCode">PMRT</Field>
            <Field name="activityDate">20100504</Field>
            <Field name="activity">C</Field>
            </Record>
            <Record name="data">
            <Field name="participantID">CC004</Field>
            <Field name="participantName">KPK</Field>
            <Field name="investorName">Abang Jampang</Field>
            <Field name="sidNumber">OTD120300000112</Field>
            <Field name="accountNumber">CC001000000171</Field>
            <Field name="bankAccountNumber">123456789</Field>
            <Field name="bankCode">PMRT</Field>
            <Field name="activityDate">20100504</Field>
            <Field name="activity">O</Field>
            </Record>
            <Record name="data">
            <Field name="participantID">CC005</Field>
            <Field name="participantName">Citibank</Field>
            <Field name="investorName">Sun Go Kong</Field>
            <Field name="sidNumber">OTD120300000112</Field>
            <Field name="accountNumber">CC001000000171</Field>
            <Field name="bankAccountNumber">123456789</Field>
            <Field name="bankCode">PMRT</Field>
            <Field name="activityDate">20100504</Field>
            <Field name="activity">C</Field>
            </Record>
            <Record name="data">
            <Field name="participantID">CC006</Field>
            <Field name="participantName">Bank Danamond</Field>
            <Field name="investorName">Sun Go Kong</Field>
            <Field name="sidNumber">OTD120300000112</Field>
            <Field name="accountNumber">CC001000000171</Field>
            <Field name="bankAccountNumber">123456789</Field>
            <Field name="bankCode">PMRT</Field>
            <Field name="activityDate">20100504</Field>
            <Field name="activity">C</Field>
            </Record>
    </List>
  </Message>



May u help me experts, how to handle this problem...?? :( :(
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900