Ok123
asked on
How to retrieve data encoded/ compressed included in a xml fil
Hello,
I must retrieve a product List from the server of a company via a web
service.
I need to show the data on a website (php).
i retrieve the xml file from the webservice and save it into my
webserver but when i want to show the product node, it is coded.
according of the webservice documentation, it's a base64-encoded zip file
.
How can i do to decode and /or unzip the node of the xml file ???
Thank you for help
I must retrieve a product List from the server of a company via a web
service.
I need to show the data on a website (php).
i retrieve the xml file from the webservice and save it into my
webserver but when i want to show the product node, it is coded.
according of the webservice documentation, it's a base64-encoded zip file
.
How can i do to decode and /or unzip the node of the xml file ???
Thank you for help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ok123 -
Can you paste some of your source code here? It might be helpful to assist you.
Can you paste some of your source code here? It might be helpful to assist you.
ASKER
I will find a part of the xml file ....(not all the coded part)
i tried to copy/paste the section between <c_zipfile> ....</c_zipfile> into a text file and tried to
open with PHP zip_.... but no result.
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
<VFPData>
<xsd:schema id="VFPData" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="VFPData" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="crs_answer" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="c_zipfile">
<xsd:simpleType>
<xsd:restriction base="xsd:base64Binary">
<xsd:maxLength value="2147483647"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:choice>
<xsd:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="lax"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<crs_answer>
<c_zipfile>
UEsDBBQAAgAIAJIITj5m5t1SiusIACRh5QANAAAAMzVFMDJCMDFLLnhtbOzde3PaSLYA8P9Tle+gm/vfrBL63dJUxlsYNBkmBHsBZza1tXWL.......
.
.
.
</c_zipfile>
</crs_answer>
</VFPData>
ASKER
ok i found the solution , i need to decode the node first and after unzip it ... thanks for all
ASKER
Yes it's the first thing i tried but it remain unreadable.
Open in new window