on 02-21-2013 4:31 PM
Dear Experts,
I need to read a file from a FTP server and push it to a Webservice, without any major mapping (file transfer from FTP to Webservice). Whole file content should be mapped to a single field in the target WSDL as base64. I think this can be achieved by a UDF in the graphical mapping. Just wondering if that's the right approach or any other better alternatives available. Please suggest.
Thanks
Yes, that's easiest way to achieve your requirement, if you are below PI 7.1, you can refer
Or if you are using PI 7.1, find below blog by Jyothi Anagani..
Hope it help.!
Regards,
Sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I need to read a file from a FTP server and push it to a Webservice, without any major mapping (file transfer from FTP to Webservice). Whole file content should be mapped to a single field in the target WSDL as base64. I think this can be achieved by a UDF in the graphical mapping. Just wondering if that's the right approach or any other better alternatives available. Please suggest.
I guess you have to use java mapping for this. In your sender CC, no field content conversion would be required so that the file would be read as-is (as a text file). Build the Soap Structure using the same Java mapping.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Joe,
Simplest would be using Java Mapping, although I have no code for reading text files, you could easily code this Here is the API for PI 7.1 Java Mapping http://wiki.sdn.sap.com/wiki/display/XI/Using+PI+7.1+API+for+Java+mapping
Hope this helps,
Mark
Wiki seems to be down for a while. Meanwhile, I was trying to create an UDF using the external commons-codec-1.4.jar. I downloaded the jar file to my desktop and placed it inside the folder path (com/test/encoding/) and imported the jar file to PI 7.31 as imported archive ( i can see the path as com/test/encoding/ in imported archive.. (file name com.zip)..but, when I use the import statement import com.test.encoding.*, its throwing the error package doesn't exist.. not sure what's wrong with this (I'm referring the Imported archive in archived used of function library too)...pls suggest.. thx
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.