SMS Job Submit

Options

I submitted a test SMS job and received the following error:

cvc-complex-type.2.4.b: The content of element 'JobSubmitRequest' is not complete. One of '{"http://premconn.premiereconnect.com/JobSubmit/2009/07":Message}' is expected.

Any help and suggestions would be appreciated. I have attached the request envelope.

Comments

  • The error message you are getting is accurate - your input is missing the <Message> element.

    The structure of your XML looks like this:

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
        <s:Header>
            <h:Request ...>
                <ReceiverKey>http://xoa.pt.premiereglobal.com/soap/sync</ReceiverKey&gt;
                <ResultRequired>yes</ResultRequired>
                <Authentication>
                ...
                </Authentication>
            </h:Request>
        </s:Header>
        <s:Body ...>
            <JobSubmitRequest xmlns="http://premconn.premiereconnect.com/JobSubmit/2009/07">
                <SubmitId/>
                <DocumentSet>
                    <Document ref="message_body">
                        ...
                    </Document>
                    <Document ref="destination">
                        ...
                    </Document>
                </DocumentSet>
            </JobSubmitRequest>
        </s:Body>
    </s:Envelope>

     

    If you look at the schema for the JobSubmitRequest (https://apiforums.easylink.com/emapidocs/24/JobSubmit/JobSubmitRequest.html) you can see that it requires that there be a <Message> element following the <DocumentSet>.

    The way this works is that the <DocumentSet> allows you to specify the documents that will be used in the job, but it doesn't actually instruct the system to send anything - the <Message> element is where you actually specify that the job should be sent.

  • Thank you. 

    I now have a new error: XOA-2013: No destinations found in Table.

    I am attaching the Request and Response envelopes. I have added the Message element and, obviously, I am doing something else wrong. Would you please help again?

  • Your DocData should have a CR/LF at the end of each line, not a comma. So it would look like this.

     <DocData format="text">TYPE,ADDR,REF,INS_1,INS_2
    sms,8563817518,ref1,Phil Bossardet,555-555-5555
    sms,8563817518,ref2,Phil Bossardet,555-555-5555</DocData>

    When I build mine in C# I use a StreamWriter and WriteLine which adds the CR/LF. I then base64 encode it.

    Tom

  • Look at the reply on the Forum, the sample shows correctly there. The email changed it.

    Tom

  • Thank you. Current problems solved.