Skip to Content
0
Former Member
Jul 18, 2016 at 12:58 PM

MultiPart request using HTTP_AAE, SAP PI is sending default boundary

3869 Views

Dear All,

My Scenario is Proxy to HTTP. I am using HTTP_AAE channel . I am using SAP PI7.4

I need to pass a multipart request and attachment to 3rd party HTTP application

For this i have used Java mapping. Here Below is request generated after java mapping.

b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA

Content-Disposition: form-data; name="ioCtx"

Content-Type: text/plain; charset=US-ASCII

Content-Transfer-Encoding: 8bit

1

--b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA

Content-Disposition: form-data; name="requestMode"

Content-Type: text/plain; charset=US-ASCII

Content-Transfer-Encoding: 8bit

0

--b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA

Content-Disposition: form-data; name="fileType"

Content-Type: text/plain; charset=US-ASCII

Content-Transfer-Encoding: 8bit

0

--b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA

Content-Disposition: form-data; name="numberLang"

Content-Type: text/plain; charset=US-ASCII

Content-Transfer-Encoding: 8bit

en

--b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA

Content-Disposition: form-data; name="exportDestination"

Content-Type: text/plain; charset=US-ASCII

Content-Transfer-Encoding: 8bit

3

--b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA

Content-Disposition: form-data; name="importType"

Content-Type: text/plain; charset=US-ASCII

Content-Transfer-Encoding: 8bit

0

--b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA

Content-Disposition: form-data; name="ePASSRequestDocs"

Content-Type: text/plain; charset=US-ASCII

Content-Transfer-Encoding: 8bit

C:\SDG\Temp\Import.xml

--b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA

Content-Disposition: form-data; name="C:\SDG\Temp\Import.xml"; filename="import.xml"

Content-Type: text/xml; charset=ISO-8859-1

Content-Transfer-Encoding: binary

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

<!DOCTYPE ePASSRequest SYSTEM "ePASS3.dtd">

<ePASSRequest requestID="6000285957" submitterOrganization="6200" submitterUser="bam" submitterPassword="Test@1234">

<RFxRequest>

<createRFx>

<RFx RFxStyle="None" OrganizationCode="6200" RFxName="1081600035" RFxType="RFP" RFxBusinessUnit="(Unassigned)" RFxIsTemplate="FALSE" RFxTemplateCode="ZR01" RFxStatus="created" RFxDecimalPlaces="2" RFxDefaultCurrencyCode="INR" RFxCurrencyCodes="INR|USD|EUR" RFxPrimaryContact="bam">

<GeneralRFxBiddingRules RFxUseBundleBid="false" RFxVolumeDiscount="false" RFxUseItemSet="false" RFxEventNotifications="true"/>

<AttachmentRules RFxEventAttachment="true" RFxBidAttachment="true" RFxQuestionnaireResponseAttachment="true" RFxQuestionResponseAttachment="true"/>

<RFQBiddingRules RFxUseVolumeBid="false" RFxAllowOptimizationFeedback="false" RFxAllowSupplierConstraint="false" RFxAllowSingleBidPerItem="false"/>

<RFxBuyerRules RFxLockedBidIndicator="false"/>

<HostAssignment LoginName="bam" ResponderParticipationStatus="accepted" SubscriptionType="rfx" HostAssignmentRole="Lead"/>

<Subscription LoginName="xyz@abc.com" SupplierProfileName="Org Name" ResponderParticipationStatus="unacknowledged" SubscriptionType="rfx"/>

<Requisition RequisitionCode="Default" RequisitionName="Default">

<LineItem LineItemCategoryCode="root category" LineItemCode="10" LineItemLotName="Default" LineItemMinimumBidQuantity="0" LineItemMinimumDesiredQuantity="10.0" LineItemName="10" LineItemType="single">

<ExtendedAttribute ExtendedAttributeCode="Material Code" ExtendedAttributeValue="OPC43"/>

<ExtendedAttribute ExtendedAttributeCode="Material Group" ExtendedAttributeValue="Z200"/>

<ExtendedAttribute ExtendedAttributeCode="Plant" ExtendedAttributeValue="6972"/>

<ExtendedAttribute ExtendedAttributeCode="Plant Region" ExtendedAttributeValue="WEST BENGAL"/>

<ExtendedAttribute ExtendedAttributeCode="Country" ExtendedAttributeValue="India"/>

<ExtendedAttribute ExtendedAttributeCode="Required Delivery Date" ExtendedAttributeValue="01.08.2016"/>

<ExtendedAttribute ExtendedAttributeCode="UOM" ExtendedAttributeValue="Metric Ton"/>

</LineItem>

</Requisition>

</RFx>

</createRFx>

</RFxRequest>

</ePASSRequest>

--b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA--

---------------------------------------------------------------------------------

But i can see SAP PI is sending default boundary to 3rd party application as below:

ContentType is multipart/form-data;

boundary="----=_Part_902_709655699.1468844264926



also trace log says Request is single part

I also tried to use message transform bean to change boundary and content type

Module sequence is as below

AF_Modules/MessageTransformBean

sap.com/com.sap.aii.adapter.http/HttpAdapterBean

Parameter name Transform.ContentType

Parameter value multipart/form-data;boundary="b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA"

But still at receiver end Header boundary is reaching as

ContentType is multipart/form-data;

boundary="----=_Part_902_709655699.1468844264926


Please suggest me how I can send content type as multipart/form-data;boundary="b2Lh0weilHCR3Aw6z30XSc-HGGYpw-LcKSA" in header request

Thanks

Sandeep Sharma