on 07-12-2013 12:51 AM
hi
i have a request about a File to File and proxy Scenario, in the proxy need to send the name of the file, extension and date-time of the file move in the File to file, inside(message mapping) need to get some file property's, i need to create the ESB objects,
my doubt is, do i need to do it in java mapping or is it way to do it with UDF?
i have this code for UDF, it works with xml files, but dont work with image files(*.tiff,*.jpeg) and PDFs files
i keep getting the error message "Content is not allowed"
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_ScanFilePL_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
<SAP:P3>Content is not allowed in prolog.</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_ScanFilePL_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Content is not allowed in prolog.</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
You can do both java mapping or UDF. The point is you need to set content type different for image files. You can also do base64 encoding first and follow this link for sample
http://stackoverflow.com/questions/1312832/java-image-encoding-in-xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Can you paste ur code here?
I had a similar scenario where i need to send the file name which is transferred to FTP server (file to file scenario) to Proxy (SAP system) and IMO, using java mapping is more advisable.
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit
i been following this examples and got this code, from here.
http://saptechnical.com/Tips/XI/ASMA/Index.htm
http://scn.sap.com/message/13562783.
i will start with the java mapping just waiting for the basis team to give me the jar files that i need.
now im just reading Baskar link, if i get it to work i will tell you, either way if you got more information please post it, so we could help each other.
thanks
Regards,
Erick
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.