Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8459

Re: SMP 3.0: POST method for more than one entry

$
0
0

yes, it worked with BATCH request.

 

 

BatchPost.png

 

 

Request body:

 

 

--batch

Content-Type: multipart/mixed; boundary=changeset


--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

POST DEPARTMENT HTTP/1.1

Content-Type: application/atom+xml


<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<atom:content type="application/xml">

<m:properties>

<d:DEPT_ID>136</d:DEPT_ID>

<d:DEPT_NAME>CanvasM</d:DEPT_NAME>

<d:DEPT_LOCATION>ITC-5</d:DEPT_LOCATION>

</m:properties>

</atom:content>

</atom:entry>

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

POST DEPARTMENT HTTP/1.1

Content-Type: application/atom+xml

 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<atom:content type="application/xml">

<m:properties>

<d:DEPT_ID>137</d:DEPT_ID>

<d:DEPT_NAME>CanvasM</d:DEPT_NAME>

<d:DEPT_LOCATION>ITC-5</d:DEPT_LOCATION>

</m:properties>

</atom:content>

</atom:entry>


--changeset--

--batch--

 

 

 

 

BatchResponse.png


Viewing all articles
Browse latest Browse all 8459

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>