- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022 01:15 AM - edited 11-30-2022 01:17 AM
I rty to send POST request via CVP Rest Client element with body:
<import>
<fileContent>
<![CDATA[
Phone01
0631231212
]]>
</fileContent>
<delimiter>,</delimiter>
</import>
, but I receive
400 Bad Request - javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.]
In wireshark I found that request is not complete
Solved! Go to Solution.
- Labels:
-
Customer Voice Portal
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 10:13 AM - edited 12-01-2022 10:14 AM
Have you set the Content-Type Header?
Can you also try without the CDATA format.
i.e. here is a very similar example - which I know works perfectly. (I use this to insert a callback into the Dialer).
Regards,
Gerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022 01:38 AM
I believe you have an error in the XML formatting ?
Have you tested the format and got it to work outside of CVP, e.g. in Postman?
Gerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022 02:26 AM
Yes, postmen send full request. And all works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 10:13 AM - edited 12-01-2022 10:14 AM
Have you set the Content-Type Header?
Can you also try without the CDATA format.
i.e. here is a very similar example - which I know works perfectly. (I use this to insert a callback into the Dialer).
Regards,
Gerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 01:03 PM
Thanks, it works without CDATA.
I also implement callbacks and I just didn't know that it was possible to do so.
