cancel
Showing results for 
Search instead for 
Did you mean: 

Reading zip file

Former Member
0 Kudos

Hi All,

I am working on a scenrio on 7.31 where the requirement is to download a zip file on our server.  I am using SOAP AXIS adapter to achieve this.

Please suggest.

Regards,

Ashish

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi All,

I have similar requirement and trying to use AXIS to download ZIP file. But it isn't helping.

Anyone have any other approach, please suggest.

Regards,

Ashu

subhro_de
Active Participant
0 Kudos

Hi Ashish,

As you are already using the SOAP Axis adapter - did you get a chance to try out the following configuration - referring to sender soap axis polling and passing the payload to the receiver communication channel (if the file is already in a zipped format).

Regards

Subhro

Former Member
0 Kudos

Thanks Subhro,

This is the same configuration i have maintained for sender SOAP AXIS channel to read the zip payload. Unfortunatly this is meant to read XML files, otherwise it throws parsing exception as in my case the error is "org.xml.sax.SAXParseException:An invalida character(0x3) found in the element content of the document".

When I read some XML file from website & the same wsdl i maintain in the sender service the file read successfully.

Let me know how to read the attachment from SOAP AXIS adapter?

Regards,

Ashish

former_member192851
Active Participant
0 Kudos

Are you using AF_Modules/PayloadSwapBean module?

anupam_ghosh2
Active Contributor
0 Kudos

Hi Ashish,

                    The zip file contains invalid XML characters thus parser is failing to read the file.

Try this insert one invalid character in a valid XML file and then try to read it from the web server. Check if this works else different strategy is required here.

Regards

Anupam

Former Member
0 Kudos

Anupam,

The file itself is zip, until it is unzipped how can PI can read whether the is valid or invalid.

This is the case since the file is zipped & adapter is expecting some data in xml form which is why iy is throwing error.

If you know how to first unzip it & then read the csv file from SOAP AXIS adapter then let me know?

Regards,

Ashish

Former Member
0 Kudos

Arthem,

I am not using PayloadSawpBean..Is there possibilty to use it.

I have a link on website which is poining to zip file & that zip file containing csv file which i need to read in PI. Let me know how to achieve it using payloadswapBean.

Regards,

Ashish

former_member192851
Active Participant
0 Kudos

Ashish, check this thread: http://scn.sap.com/thread/2065627

Former Member
0 Kudos

Artem,

Thanks for the link.

I have added payloadswapbean allso before paybut still the same error - "org.xml.sax.SaxParseException - An invalid xml character(0x3) was found in the element of the document".

Regards,

Ashish

anupam_ghosh2
Active Contributor
0 Kudos

Hi Ashish,

                    Did you try the option suggested by ? "unsafe, but working: make java-mapping, that will connect to http-server, get link and download it.

And use this mapping in your scenario in PI". In this method you can bypass the parser and read the content as non xml.

Regards

Anupam

former_member192851
Active Participant
0 Kudos

Check your channel in rwb. Does added modules work?

Can you show  us your module settings and channel log from rwb?

Former Member
0 Kudos

Hi all,

I am working on a scenario on 7.30 ,web service scenario (soap adapter sender and receiver ) that  take https  server which has link to the file that has to be downloaded.I didn't give response zip file successfully via soap  adapter. I want to give same zip file in response(any changes in zip file). when I save response ,zip file occured error take.How can I make?

Thank you.

former_member192851
Active Participant
0 Kudos

unsafe, but working: make java-mapping, that will connect to http-server, get link and download it.

And use this mapping in your scenario in PI.

Your scenario will be: your system - PI - your system. All connections to http-server will be in Java Mapping.

Former Member
0 Kudos

Artem,

In that case what would be the sender interface, sender channel which would trigger Java mapping?

Regards,

Ashish

anupam_ghosh2
Active Contributor
0 Kudos

Hi Ashish,

                   You can use RFC/proxy in sender side from ECC to trigger the scenario.

Batch jobs may be scheduled in ECC side to trigger the scenario at  regular intervals. There will be a dummy sender SI within OM. The OM will in turn call MM containing the java mapping code. The code communicates with web server and fetches the file into PI.  The code also populates a target XML in OM with success message and the file name which has been fetched. The scenario being synchronous response from PI may be stored in a table within ECC. If this is a client -server architecture then I believe you can use socket programming within java mapping to fetch the file.

Regards

Anupam

anupam_ghosh2
Active Contributor
0 Kudos

Hi Ashish,

                    Please check these links

http://help.sap.com/saphelp_nw04/Helpdata/en/45/da9358a1772e97e10000000a155369/content.htm

http://scn.sap.com/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the...

I wonder why are you using SOAP AXIS adapter when file adapter can suffice.

Regards

Anupam

Former Member
0 Kudos

Anupam,

The file is retrieved from web site & not the file server.

Regards,

Ashish

gagandeep_batra
Active Contributor
0 Kudos

Hi Ashish,

Can you explain which type of server this is ..

Regards

Gagan

Former Member
0 Kudos

Gagan,

This is static http  server which has link to the file that has to be downloaded.

Regards,

Ashish