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

SOAP Attachment message successfully in SAP PI - Receiver system failing to see/extract attachment

$
0
0

Hello!! Gurus

 

We have a SOAP(external vendor) to SOAP (internal 3rd party application) interface

 

  • SOAP(external vendor) ~ vendor provided WSDL
  • SOAP (internal 3rd party application) ~ PI generated WSDL


We matched the data type to be the same on both sides.


All the sync websercives are working correctly incluing the SOAP attachments being passed in couple of them.


However, the SOAP attachments are not being viewed by the 3rd party application which is receiving the attachment in response.


PI SXMB_MONI is having the attachment available.


Also, if I call this message through SOAP UI - we are unable to see the attachment in SOAP UI same as 3rd party application (PI provided WSDL)


Can you please let me know if this anything we could be missing - we are using the standard SOAP adapter (NO Axis adapter)- keep attachment checked - as mentioned we are able to view attachment - in SXMB_MONI - its only the 3rd party internal (non SAP system) which says its not seeing attachment.


Additionally below is the data type of the field associated to which the attachment is tied to on the SOAP response:

 

  • SOAP(external vendor) ~ vendor provided WSDL has the data type as:
    • element name="FileAttachmentHandler" type="xs:base64Binary" xmime:expectedContentTypes="application/octet-stream"


  • SOAP (internal 3rd party application) ~ PI generated WSDL
    • element name="FileAttachmentHandler" type="xsd:base64Binary" (do we need to somehow define content type as above ?! - IF so how ?!)


We have a XSLT mapping to handle the attachment as well (see below)

 

XSLT mapping placed after the message mapping:


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

<ns0:stylesheet version="1.0" xmlns:ns0="http://www.w3.org/1999/XSL/Transform" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:ns2="xsl">

   <ns0:template match="node() | @*">

      <ns0:copy>

         <ns0:apply-templates select="node() | @*"/>

      </ns0:copy>

   </ns0:template>

   <ns0:template match="xop:Include"/>

</ns0:stylesheet>

 

Sorry for long posting/message query ... Thanks for reading thru it ... Your help is greatly appreciated!!


Thank you,

Ritu



Viewing all articles
Browse latest Browse all 971

Trending Articles



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