XPRIM_HTTPREQUEST remove multipart message?
Posted: Mon Oct 04, 2021 8:44 pm
Hi,
I’ve hit a bit of a bottleneck with the VL14 #XPRIM_HttpRequest class.
I am trying to build up an XML which sends across to our iPaaS software via an API.
The XML string can be fairly big (over 100,000 characters) however I’m hitting a limit which I believe is 65,535 characters on this method:
Even having #uOutBoundXML as a PRIM_ALPH with a length of 100,000 does not work as I think the bottleneck is the Content.AddString method (65,535?)
#uRequest.Content.AddString Value(#uOutboundXML)
The above only sends the first 65,535 characters through which is the max string limit. I tried getting around this by calling .uAddString again to add another message to the request..
#uRequest.Content.AddString Value(#uOutboundXML_2)
Howver this then sends the message through as a multipart message which includes a boudary such as "--kjOatbCwl5M01gIztMCnPtT5eBOPZXOs6MJBiZc2cNMguSlp3vU3b6mJHBVYfROi"
All I want is the request to have OutboundXML and OutboundXML_2 joiuned together as i'm sending it through as XML. I have tried setting the mediatype to both application/xml and text/plain however i'm still getting the multipart/boundary.
Anyone any tips?
I’ve hit a bit of a bottleneck with the VL14 #XPRIM_HttpRequest class.
I am trying to build up an XML which sends across to our iPaaS software via an API.
The XML string can be fairly big (over 100,000 characters) however I’m hitting a limit which I believe is 65,535 characters on this method:
Even having #uOutBoundXML as a PRIM_ALPH with a length of 100,000 does not work as I think the bottleneck is the Content.AddString method (65,535?)
#uRequest.Content.AddString Value(#uOutboundXML)
The above only sends the first 65,535 characters through which is the max string limit. I tried getting around this by calling .uAddString again to add another message to the request..
#uRequest.Content.AddString Value(#uOutboundXML_2)
Howver this then sends the message through as a multipart message which includes a boudary such as "--kjOatbCwl5M01gIztMCnPtT5eBOPZXOs6MJBiZc2cNMguSlp3vU3b6mJHBVYfROi"
All I want is the request to have OutboundXML and OutboundXML_2 joiuned together as i'm sending it through as XML. I have tried setting the mediatype to both application/xml and text/plain however i'm still getting the multipart/boundary.
Anyone any tips?