3 Replies Latest reply: Apr 24, 2013 2:15 AM by user10683443 RSS

    Getting error while invoking BAM Web service from SOAP UI

    user10683443
      Dear All,

      I am trying to create a data object in BAM using BAM DataObjectDefinition Operations Web service using below payload
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bam="http://xmlns.oracle.com/bam">
      <soapenv:Header/>
      <soapenv:Body>
      <bam:Create>
      <!--Optional:-->
      <bam:xmlPayload><DataObject Version="14" Name="Employees3" ID="_Employees3" Path="/Samples"
      External="0">
      <Layout>
      <Column Name="Salesperson" ID="_Salesperson" Type="string" MaxSize="30"
      Nullable="1" Public="1" />
      <Column Name="Sales Number" ID="_Sales_Number" Type="decimal"
      Nullable="1" Public="1" />
      <Column Name="Timestamp" ID="_Timestamp" Type="timestamp"
      Nullable="0" Public="1" />
      <Indexes />
      </Layout>
      </DataObject>
      </bam:xmlPayload>
      </bam:Create>
      </soapenv:Body>
      </soapenv:Envelope>

      But i am getting below error in SOAPUI 4.5.1 and it seems something is wrong with Payload

      AM-06100: Data object definition creation failed.com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
      at [row,col {unknown-source}]: [2,0]

      Can anyone advise me what needs to be change in above payload so that it can create a DataObject in BAM.

      Thanks,
        • 1. Re: Getting error while invoking BAM Web service from SOAP UI
          user100012345
          Make sure you are using the correct URL.

          Please verify the format of input payload as mentioned in the oracle documentation.

          http://docs.oracle.com/cd/E14571_01/integration.1111/e10224/bam_app_webserv.htm#BABEEJCE
          • 2. Re: Getting error while invoking BAM Web service from SOAP UI
            Shankar
            Hi,

            Please check once the format of input payload as mentioned in the oracle documentation.

            http://docs.oracle.com/cd/E29597_01/dev.1111/e10224/bam_app_webserv.htm


            Regards
            Siva Sankar
            • 3. Re: Getting error while invoking BAM Web service from SOAP UI
              user10683443
              Dear All,

              I manage to create a DataObject in BAM using below payload.
              Hope it will help

              <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bam="http://xmlns.oracle.com/bam">
              <soapenv:Header/>
              <soapenv:Body>
              <bam:Create>
              <!--Optional:-->
              <bam:xmlPayload>
              <![CDATA[<DataObject Version="14" Name="Employees3" ID="_Employees3" Path="/Samples"
                          External="0">
                <Layout>
                  <Column Name="Salesperson" ID="_Salesperson" Type="string" MaxSize="30"
                          Nullable="1" Public="1" />
                  <Column Name="Sales Number" ID="_Sales_Number" Type="decimal"
                          Nullable="1" Public="1" />
                  <Column Name="Timestamp" ID="_Timestamp" Type="timestamp"
                          Nullable="0" Public="1" />
                  <Indexes />
                </Layout>
              </DataObject>]]>
              </bam:xmlPayload>
              </bam:Create>
              </soapenv:Body>
              </soapenv:Envelope>