Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

SOAP attachments in inbound proxy

$
0
0

 

We want to use a standard inbound proxy to create a service order in CRM. We need to pass on some documents to the service order as attachments. For this we can use the proxy ServiceOrderCRMBulkCreateRequest (from http://sap.com/xi/SAPGlobal20/Global).


The attachments can be addes using the FileContentBinaryObject with the (in our case) the pdf file as base64 encoded string. But this will blows up the XML. The attachment blok is read by the validation(s), mapping and even the response proxy returns the complete XML including the attachment(s).


A better way could be to use the Attachment element that should refer to a SOAP attachment. The problem is however to find documentation on how to use this Attachment element. The Attachment element contains an id attribute that should refer to the SOAP attachment mime block. But we were not able to succefully execute the proxy. The error message returned by the proxy is not very helpfull: Proxy Class (generated)


We used the following AttachmentFolder :


<AttachmentFolder>
   <Document>
      <PathName>./test66.doc</PathName>
      <Name>test66.doc</Name>
      <SystemAdministrativeData>
         <CreationDateTime>2013-12-23T08:00:00.000Z</CreationDateTime>
      </SystemAdministrativeData>
      <VisibleIndicator>true</VisibleIndicator>
      <VersioningEnabledIndicator>true</VersioningEnabledIndicator>
      <CategoryCode>2</CategoryCode>
      <Attachment id="attachment-1" fileName="test66.doc"/>
   </Document>
</AttachmentFolder>


We use PI 7.3 SP5 and SAP CRM 7.0 SP6



 


Viewing all articles
Browse latest Browse all 6719

Trending Articles



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