[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Reading a document after received in the IFS
Why aren't you just using httpapi to parse the XML?
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of J. Carlos Lugo
Sent: Friday, January 27, 2012 3:16 PM
To: 'HTTPAPI and FTPAPI Projects'
Subject: Reading a document after received in the IFS
I have one question:
I am new on this but it works great, I am pulling Orders from a Web Services using the http_url_get_raw, and We have received the File and save it in to the IFS now do yo have a tool to read the file from the IFS so I can read it and strip all the data from that file to populate PHYSICAL Files in the AS400.
The file received looks like the following sample
<?xml version="1.0" encoding="UTF-8" ?>
<https://www.shopinbloombyjonquil.com/dataport/dl/Generic/Orders18b7b14f-165
f-4001-907d-ea1a0d328bce.xml#> - <xmldata>
<https://www.shopinbloombyjonquil.com/dataport/dl/Generic/Orders18b7b14f-165
f-4001-907d-ea1a0d328bce.xml#> - <Orders>
<OrderID>2944</OrderID>
<AddressValidated>Y</AddressValidated>
<BillingAddress1>1800 N. Oak St.</BillingAddress1>
<BillingAddress2>Apt 1701</BillingAddress2>
<BillingCity>Arlington</BillingCity>
<BillingCompanyName />
<BillingCountry>United States</BillingCountry>
<BillingFaxNumber />
<BillingFirstName>Margaret</BillingFirstName>
<BillingLastName>Bishop</BillingLastName>
<BillingPhoneNumber>7033519951</BillingPhoneNumber>
<BillingPostalCode>22209</BillingPostalCode>
<BillingState>VA</BillingState>
<Order_Entry_System>PHONE</Order_Entry_System>
<OrderDate>1/26/2012 11:05:00 AM</OrderDate>
<OrderNotes />
<OrderStatus>Processing</OrderStatus>
< </OrderDetails>
</Orders>
<https://www.shopinbloombyjonquil.com/dataport/dl/Generic/Orders18b7b14f-165
f-4001-907d-ea1a0d328bce.xml#> - <Orders>
Regards,
Carlos Lugo
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1901 / Virus Database: 2109/4770 - Release Date: 01/27/12
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------