Skip Navigation
Expand
Basic Get SOAP Envelope
Answer ID 7095   |   Last Review Date 12/19/2018

Do you have an example SOAP Envelope that will retrieve a contact using Get?

Environment:

Oracle B2C Service All Versions, SOAP API

Resolution:

Yes, here is a simple contact Get SOAP Envelope that is using SOAP v1_2

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header>
        <ns7:ClientInfoHeader xmlns:ns7="urn:messages.ws.rightnow.com/v1_2" soapenv:mustUnderstand="0">
            <ns7:AppID>Basic Get</ns7:AppID>
        </ns7:ClientInfoHeader>
        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" mustUnderstand="1">
            <wsse:UsernameToken>
                <wsse:Username>userName</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">usersPassword</wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>
    </soapenv:Header>
    <soapenv:Body>
            <ns7:Get xmlns:ns7="urn:messages.ws.rightnow.com/v1_2">
           <ns7:RNObjects xmlns:ns4="urn:objects.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns4:Contact">
                <ID xmlns="urn:base.ws.rightnow.com/v1_2" id="user ID goes here" />
            </ns7:RNObjects>
                      <ns7:ProcessingOptions>
                <ns7:FetchAllNames>false</ns7:FetchAllNames>
            </ns7:ProcessingOptions>
        </ns7:Get>
    </soapenv:Body>
</soapenv:Envelope>

Note:The sample code in this document is not certified or supported by Oracle. It is intended for educational or testing purposes only. Use of this sample code implies acceptance of the License Agreement.

 

Available Languages for this Answer:

Notify Me
The page will refresh upon submission. Any pending input will be lost.