I need to query an XML server : https://xmlserver.com/xml , but I do not know this language.
1: Transaction Header?
Example :
<PNARequest> <Version>2.0</Version> <TransactionHeader> <SenderID>123456789</SenderID> <ReceiverID>987654321</ReceiverID> <CountryCode>FR</CountryCode> <LoginID>XX7456DMP</LoginID> <Password>123456789</Password> <TransactionID>Transaction_ID</TransactionID> </TransactionHeader> <PNAInformation SKU="1234567" Quantity="1"/> <PNAInformation ManufacturerPartNumber="VA1926W" Quantity="1"/> <PNAInformation UPC="8801031069613"/> <ShowDetail>2</ShowDetail> </PNARequest> I need to get:
<PNAResponse> <Version>2.0</Version> <TransactionHeader> <SenderID>Entrepot2b</SenderID> <ReceiverID>Achats123</ReceiverID> <ErrorStatus ErrorNumber=""></ErrorStatus> <DocumentID>{8149EC06-DA8D-455A-9A18-949BE23769E0}</DocumentID> <TransactionID>Gesco897568</TransactionID> <TimeStamp>2010-12-16T12:20:23</TimeStamp> </TransactionHeader> <PriceAndAvailability SKU="1234567" Quantity="1"> <Price>9,60</Price> <SpecialPriceFlag></SpecialPriceFlag> <ManufacturerPartNumber>VA1926W</ManufacturerPartNumber> <ManufacturerPartNumberOccurs></ManufacturerPartNumberOccurs> <VendorNumber>C566</VendorNumber> <Description>76.2 WIDE, 25.4 LONG, TT</Description> <ReserveInventoryFlag>Y</ReserveInventoryFlag> <AvailableRebQty>0</AvailableRebQty> <Branch Name="" ID="81"> <Availability>80</Availability> <OnOrder>20</OnOrder> <ETADate>2011-01-28</ETADate> </Branch> <UPC>8801031069613</UPC> <CustomerPartNumber></CustomerPartNumber> </PriceAndAvailability> </PNAResponse> What should be done in PHP? to view:
Price : 9.60 UPC : 8801031069613 Availability : 80
Can you help me ?
This is probably simple to do but I do not know XML
An example to tell me?
thank you ALL
No comments:
Post a Comment