Search the Community
Showing results for tags 'cxml php'.
-
Hi, I'm currently facing challenges with the PunchOutOrderMessage in my project. While I have successfully implemented punchout functionality, I'm encountering issues with the PunchOutOrderMessage not reaching the endpoint. Could you please provide a solution or guidance on how to resolve this matter? Your assistance would be greatly appreciated. Thank you.
-
Hi, I'm working on something similar right now. and got stuck in the same places you were. Could you please assist me in fetching the cXML PunchOutRequest?
-
Hi, Recently i need to implement cXML punchOut Transaction from a procurement system with my e-commerce website. The process required 3 steps to complete. PunchOutSetupRequest, PunchOutSetupResponse and PunchOutOrderMessage. Although I manage to find some XML user guide online, but i am still not very sure how it work. Please help me if there someone familiar with cXML punchOut. 1) where to get the DUNS identity? Can we replace by our own ID? <To> <Credential domain="DUNS"> <Identity>83528721</Identity> </Credential> </To> 2) I tried to use php curl to send the PunchOutSetupRequest to the our receive page and i manage to use file_get_contents('php://input') to get the XML parameters. Is this the same way it work? 3) after retrieved the XML parameters, authenticated, then echo the below code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.009/cXML.dtd"> <cXML payloadID="myPayloadID" timestamp="20131001T153612@mydomain" version="1.2.009" xml:lang="en-US"> <Response> <Status code="200" text="Success connected!" xml:lang="en-US"/> <PunchOutSetupResponse> <StartPage> <URL>http://www.myShoppingcart.com</URL> </StartPage> </PunchOutSetupResponse> </Response> </cXML> it will PunchOutSetupResponse back to the procurement system and redirect to my ecommerce website? 4) after checkout, i need to do PunchOutOrderMessage, echo the below code: <?xml version="1.0"?> <!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd"> <cXML xml:lang="en-US" payloadID="myPayloadID" timestamp="20131001T153612@mydomain"> <Header> <From> <Credential domain="DUNS"> <Identity>83528721</Identity> </Credential> </From> <To> <Credential domain="DUNS"> <Identity>65652314</Identity> </Credential> </To> <Sender> <Credential domain="workchairs.com"> <Identity>website 1</Identity> </Credential> <UserAgent>Workchairs cXML Application</UserAgent> </Sender> </Header> <Message> <PunchOutOrderMessage> <BuyerCookie>1CX3L4843PPZO</BuyerCookie> <PunchOutOrderMessageHeader operationAllowed="edit"> <Total> <Money currency="USD">763.20</Money> </Total> </PunchOutOrderMessageHeader> <ItemIn quantity="3"> <ItemID> <SupplierPartID>5555</SupplierPartID> <SupplierPartAuxiliaryID>E000028901 </SupplierPartAuxiliaryID> </ItemID> <ItemDetail> <UnitPrice> <Money currency="USD">763.20</Money> </UnitPrice> <Description xml:lang="en"> <ShortName>Excelsior Desk Chair</ShortName> Leather Reclining Desk Chair with Padded Arms </Description> <UnitOfMeasure>EA</UnitOfMeasure> <Classification domain="UNSPSC">5136030000 </Classification> <LeadTime>12</LeadTime> </ItemDetail> </ItemIn> </PunchOutOrderMessage> </Message> </cXML> it will send the data back to the procurement system. Is it correct? Regards & Thanks, Zinho