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

Batch Operation returns no response!!

$
0
0

Hi Experts,

 

I am trying to do a Post operation, with batch operator. I used the below link

 

https://Server:Port/sap/opu/odata/sap/ZTE_MB_POST_TIME/$batch

 

and had followed the body and headers according to the link JSON POST & PUT (single & batch) on NetWeaver Gateway/http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40546820-3ea7-2f10-dfab-be373c0da357?QuickLink=index&…

 

Eventhough it gives me a 202 success message, I get a blank response, where i should get 200 OK message.

 

Response :

 

--ejjeeffe0

 

Content-Type: application/http

Content length: 0

Content-Transfer-Encoding: binary

 

--ejjeeffe0--

 

It would be very helpful, if you can share your expertise on this.

 

Regards,

Pranay Aitha.

 

 

BODY :

 

--batch

Content-Type: multipart/mixed; boundary=changeset

 

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

Post w_outputCollection('XXXXXXX-01-01-1000') HTTP/1.1

Content-Type: application/xml;

Content-Length:1000

 

 

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

    <entry xml:base="https://XXXXXX/sap/opu/odata/sap/ZTE_MB_POST_TIME/" xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">

    <id>https://XXXXXXXXX/sap/opu/odata/sap/ZTE_MB_POST_TIME/w_outputCollection(datetime'2013-11-16T00%3A00%3A00')</id>

    <title type="text">w_outputCollection(datetime'2013-11-16T00%3A00%3A00')</title>

    <updated>2013-11-26T04:55:09Z</updated>

    <category term="ZTE_MB_POST_TIME.w_output" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

    <link href="w_outputCollection(datetime'2013-11-16T00%3A00%3A00')" rel="self" title="w_output"/>

    <content type="application/xml">

    <m:properties>

    <d:day4_hrs>0.00</d:day4_hrs>

    <d:wbs_desc>APPROVED ABSENCE</d:wbs_desc>

    <d:day6_upd_fl/>

    <d:day1_reason/>

    <d:status5/>

    <d:day2_upd_fl>U</d:day2_upd_fl>

    <d:counter3>000002171385</d:counter3>

    <d:day7_cmt/>

    <d:counter1/>

    <d:row_key>00010001</d:row_key>

    <d:day4_cmt/>

    <d:status2/>

    <d:day1_upd_fl/>

    <d:att_type/>

    <d:status4/>

    <d:day7_hrs>0.00</d:day7_hrs>

    <d:line_type>ABS</d:line_type>

    <d:status1/>

    <d:day5_upd_fl/>

    <d:day6_cmt/>

    <d:counter6/>

    <d:day2_reason/>

    <d:tj>CA</d:tj>

    <d:tasktype_desc>00-Null</d:tasktype_desc>

    <d:i_date>2013-11-16T00:00:00</d:i_date>

    <d:time_cat>03</d:time_cat>

    <d:status6/>

    <d:day2_hrs>2.00</d:day2_hrs>

    <d:status7/>

    <d:day2_cmt/>

    <d:counter2/>

    <d:tasktype>00</d:tasktype>

    <d:day3_cmt/>

    <d:day3_reason/>

    <d:day3_upd_fl/>

    <d:wbs>APA</d:wbs>

    <d:day6_hrs>0.00</d:day6_hrs>

    <d:counter7/>

    <d:day6_reason/>

    <d:day5_reason/>

    <d:day1_cmt/>

    <d:day5_hrs>0.00</d:day5_hrs>

    <d:counter5/>

    <d:upd_fl>U</d:upd_fl>

    <d:counter4/>

    <d:tj_desc>California</d:tj_desc>

    <d:day5_cmt/>

    <d:day1_hrs>0.00</d:day1_hrs>

    <d:day4_upd_fl/>

    <d:day7_reason/>

    <d:day7_upd_fl/>

    <d:day4_reason/>

    <d:day3_hrs>2.00</d:day3_hrs>

    <d:status3>30</d:status3>

    </m:properties>

    </content>

    </entry>

 

 

--changeset--

 

 

Content-Type: application/http

Content-Transfer-Encoding: binary

POST w_output('XXXXXX-01-01-1200') HTTP/1.1

Content-Type: application/xml;

Content-Length:1000

 

 

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

    <entry xml:base="https://XXXXXXXXX/sap/opu/odata/sap/ZTE_MB_POST_TIME/" xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">

    <id>https://XXXXXXX/sap/opu/odata/sap/ZTE_MB_POST_TIME/w_outputCollection(datetime'2013-11-16T00%3A00%3A00')</id>

    <title type="text">w_outputCollection(datetime'2013-11-16T00%3A00%3A00')</title>

    <updated>2013-11-26T04:55:09Z</updated>

    <category term="ZTE_MB_POST_TIME.w_output" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

    <link href="w_outputCollection(datetime'2013-11-16T00%3A00%3A00')" rel="self" title="w_output"/>

    <content type="application/xml">

    <m:properties>

    <d:day4_hrs>0.00</d:day4_hrs>

    <d:wbs_desc>APPROVED ABSENCE</d:wbs_desc>

    <d:day6_upd_fl/>

    <d:day1_reason/>

    <d:status5/>

    <d:day2_upd_fl>U</d:day2_upd_fl>

    <d:counter3>000002171385</d:counter3>

    <d:day7_cmt/>

    <d:counter1/>

    <d:row_key>00010001</d:row_key>

    <d:day4_cmt/>

    <d:status2/>

    <d:day1_upd_fl/>

    <d:att_type/>

    <d:status4/>

    <d:day7_hrs>0.00</d:day7_hrs>

    <d:line_type>ABS</d:line_type>

    <d:status1/>

    <d:day5_upd_fl/>

    <d:day6_cmt/>

    <d:counter6/>

    <d:day2_reason/>

    <d:tj>CA</d:tj>

    <d:tasktype_desc>00-Null</d:tasktype_desc>

    <d:i_date>2013-11-16T00:00:00</d:i_date>

    <d:time_cat>03</d:time_cat>

    <d:status6/>

    <d:day2_hrs>2.00</d:day2_hrs>

    <d:status7/>

    <d:day2_cmt/>

    <d:counter2/>

    <d:tasktype>00</d:tasktype>

    <d:day3_cmt/>

    <d:day3_reason/>

    <d:day3_upd_fl/>

    <d:wbs>APA</d:wbs>

    <d:day6_hrs>0.00</d:day6_hrs>

    <d:counter7/>

    <d:day6_reason/>

    <d:day5_reason/>

    <d:day1_cmt/>

    <d:day5_hrs>0.00</d:day5_hrs>

    <d:counter5/>

    <d:upd_fl>U</d:upd_fl>

    <d:counter4/>

    <d:tj_desc>California</d:tj_desc>

    <d:day5_cmt/>

    <d:day1_hrs>0.00</d:day1_hrs>

    <d:day4_upd_fl/>

    <d:day7_reason/>

    <d:day7_upd_fl/>

    <d:day4_reason/>

    <d:day3_hrs>2.00</d:day3_hrs>

    <d:status3>30</d:status3>

    </m:properties>

    </content>

    </entry>

--changeset--

--batch--


Viewing all articles
Browse latest Browse all 11577

Trending Articles