SMS Job Submit
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>
<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.
0 -
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?
0 -
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
0 -
Thank you. Current problems solved.
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management