Skip Navigation
Expand
How to make SendMailingToContact soap request
Answer ID 9817   |   Last Review Date 01/22/2019

What is the proper way to build SendMailingToContact soap request?

Environment:

Connect Web Services for SOAP 1.3

Resolution:

To build SendMailingToContact soap request, the proper namespaces must be added. Below is a properly formatted SendMailingToContact soap request.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="urn:messages.ws.rightnow.com/v1_3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header>
      <v1:ClientInfoHeader>
         <v1:AppID>Basic Send Mailing</v1:AppID>
      </v1: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"><password></wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <v1:SendMailingToContact>
         <v1:ContactID id="3375984"/>
         <v1:MailingID id="26"/>
         <v1:ScheduledTime></v1:ScheduledTime>
         <v1:IncidentID xsi:nil="true"/>
         <v1:OpportunityID id="424"/>          
      </v1:SendMailingToContact>
   </soapenv:Body>
</soapenv:Envelope>


Available Languages for this Answer:

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