0% found this document useful (0 votes)
150 views2 pages

Batch Create (SAP OData)

The document contains two POST requests to a TravelagencyCollection to add two travel agency entries with similar information but different agency numbers. Both requests include XML with properties like agency number, name, address, phone, URL, language, and currency for the agencies.

Uploaded by

isssac_Abraham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views2 pages

Batch Create (SAP OData)

The document contains two POST requests to a TravelagencyCollection to add two travel agency entries with similar information but different agency numbers. Both requests include XML with properties like agency number, name, address, phone, URL, language, and currency for the agencies.

Uploaded by

isssac_Abraham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

--batch

Content-Type: multipart/mixed; boundary=changeset

--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary

POST TravelagencyCollection HTTP/1.1


Content-Type: application/atom+xml
Content-Length: 975

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
<atom:content type="application/xml">
<m:properties

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<d:agencynum>00003000</d:agencynum>
<d:NAME>My Travel Agency</d:NAME>
<d:STREET>123 Main St.</d:STREET>
<d:POSTCODE>20004</d:POSTCODE>
<d:CITY>Washington</d:CITY>
<d:COUNTRY>US</d:COUNTRY>
<d:REGION>DC</d:REGION>
<d:TELEPHONE>+12023123500</d:TELEPHONE>
<d:URL>http://www.mytravelagency.com</d:URL>
<d:LANGU>E</d:LANGU>
<d:CURRENCY>USD</d:CURRENCY>
<d:mimeType>text/html</d:mimeType>
</m:properties>
</atom:content>
</atom:entry>

--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary

POST TravelagencyCollection HTTP/1.1


Content-Type: application/atom+xml
Content-Length: 975

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom">
<atom:content type="application/xml">
<m:properties

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<d:agencynum>00003001</d:agencynum>
<d:NAME>My Travel Agency</d:NAME>
<d:STREET>123 Main St.</d:STREET>
<d:POSTCODE>20004</d:POSTCODE>
<d:CITY>Washington</d:CITY>
<d:COUNTRY>US</d:COUNTRY>
<d:REGION>DC</d:REGION>
<d:TELEPHONE>+12023123500</d:TELEPHONE>
<d:URL>http://www.mytravelagency.com</d:URL>
<d:LANGU>E</d:LANGU>
<d:CURRENCY>USD</d:CURRENCY>
<d:mimeType>text/html</d:mimeType>
</m:properties>
</atom:content>
</atom:entry>

--changeset--
--batch--

You might also like