Announcement

Collapse
No announcement yet.

[SOLVED] Need a little help with http post to OTM

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SOLVED] Need a little help with http post to OTM

    Hi folks,

    I'm new to OTM, and I need to post xml data to it to add records. The xml I've been given as an example has no SOAP type envelope surrounding it, it looks like the following..

    <Transmission><TransmissionHeader><UserName></UserName><Password></Password></TransmissionHeader><TransmissionBody><GLogXMLEleme nt><TransactionHeader><ObjectModInfo><InsertDate>2 0081118174306</
    ...
    ...

    Is this the format the data needs to be in to go to the app server? Seems like something's missing to me, and I get a "oracle.j2ee.ws.common.soap.fault.SOAP11VersionMis matchException: Version Mismatch." error from the app server when I post to it. Can someone point me in the right direction, maybe an example or something?

    Thanks very much,

    -Adam

  • #2
    Re: Need a little help with http post to OTM

    Here is a simple XML example that will add or update a contact in OTM, This assumes you are invoking the OTM WSDL to post your transmissions.
    Hope this Helps.

    soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/apps/otm">
    <ns1:Transmission>
    <TransmissionHeader>
    <UserName>abc1234</UserName>
    <Password>CHANGEME</Password>
    </TransmissionHeader>
    <TransmissionBody>
    <GLogXMLElement>
    <Contact>
    <ContactGid>
    <Gid>
    <DomainName>MYDOMAIN</DomainName>
    <Xid>CONTACT-TEST1</Xid>
    </Gid>
    </ContactGid>
    <TransactionCode>IU</TransactionCode>
    <EmailAddress>[email protected]</EmailAddress>
    <FirstName>Abc</FirstName>
    <LastName>Xyz</LastName>
    <Phone1>(123)123-4567</Phone1>
    </Contact>
    </GLogXMLElement>
    </TransmissionBody>
    </ns1:Transmission>
    </soap:Body>
    </soap:Envelope>

    Comment


    • #3
      Re: Need a little help with http post to OTM

      Hello Rajas,

      Thanks very much for your reply. Yes, I'm using WSDL for my transmission. I've changed my post so that it looks like..

      <soap:Envelope
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body xmlns:ns1="http://xmlns.oracle.com/apps/otm">
      <ns1:Transmission>

      <Transmission>
      <TransmissionHeader><UserName></UserName><Password></Password></TransmissionHead
      ...
      ...
      ...
      ></Release></GLogXMLElement></TransmissionBody></Transmission>

      </ns1:Transmission>
      </soap:Body>
      </soap:Envelope>


      But I get an error message in the console.log (OAS) that looks like the following..

      INFO | jvm 1 | 2008/11/19 11:01:19 | 2008-11-19 11:01:19.055 ERROR OWS-04046 Caught exception while handling request: glog.util.exception.RemoteExceptionWrapper: Received error in IntXmlService

      Is there anything else that you can think of, or is there somewhere I can look for additional information (Some other log, etc)?

      Thanks, and best regards,

      -Adam

      Comment


      • #4
        Re: Need a little help with http post to OTM

        Actually, there must have been a problem with the data that I put into a CLOB column, when I loaded it in a different way I was able to post. Thanks very much for the assistance, that solved my problem.

        Best regards,

        -Adam vonNieda

        Comment

        Working...
        X