[FX.php List] cXML punch-out

Dale Bengston dbengston at tds.net
Mon Nov 16 08:55:47 MST 2009


> By the way how do developers here deal with clients needs while away. Who takes care of your babies while away.

I plan for being gone and manage clients' expectations. When I'm away, I'm away.

Dale

On Nov 16, 2009, at 8:26 AM, Someone wrote:

> Hi Steve,
> I guess what I am looking for is an already working scripts that can be modified (at a price)
> 
> Due to possible time constraints and my vacation plans, I would prefer another developer get involved.
> 
> By the way how do developers here deal with clients needs while away. Who takes care of your babies while away.
> 
> Thanks
> 
> Frank
> 
> On Nov 16, 2009, at 2:29 AM, Steve Winter wrote:
> 
>> Hi Frank,
>> 
>> So, on WS#1 the result of the link which they click needs to have this result (sort-of pseudo code)
>> 	POST PunchOutSetupRequest
>> 	TO: http://webServer2/cxml.php
>> 
>> cxml.php needs to be a PHP file on your WS#2 which can accept that XML file being posted to it (you don't need to upgrade to PHP 5 to work with XML docs, though some aspects of that are easier if you don... really, that's the least of your worries by the sounds of it ;-) It receives the file, does some processing (setting up a cart account etc) and then returns the required XML document as its response (build the XML document, then send the XML header, instead of HTML headers when you output the results...
>> 
>> (Based on my quick read of the cXML it would appear that the URL they are to be redirected to should be included in the returned response XML...? do you have sample messages which will be received/sent...? these might help you to get your head around what needs to happen)
>> 
>> When the user has finished shopping, your PHP cart needs to;
>> 	POST PuchOutOrderMessage
>> 	TO: http://webServer1/whateverTheInterfaceURLis
>> Wait for (and process) the XML file which will be returned, then issue a redirect to the user browser to send them back to WS#1
>> 
>> Does this make sense...?? does it help you see any sort of way forward...??
>> 
>> Cheers
>> Steve
>> 
>> 
>> 
>> On 15 Nov 2009, at 14:35, Someone wrote:
>> 
>>> Hi Steve,
>>> SciQuest are the creators of this cXML system
>>> 
>>> What we have:
>>> Web Server 1				Web Server 2
>>> Institution 					My Shopping Cart
>>> Where the shopper begins	Where the shopper shops
>>> 
>>> Process:
>>> 1) Shopper clicks on a link on WS #1, transmitting a PunchOutSetupRequest
>>> 2) WS #2 receives the transmission and transmit PunchOutSetupResponse and provides a URL to start shopping
>>> 3) Shopper gets redirected to WS #2 and does their shopping.
>>> 4) Finally, Shopper clicks on checkout and transmit a PunchOutOrderMessage with contents of cart and gets redirected back to WS #1
>>> 
>>> WS #2 running PHP Version 4.4.9
>>> 
>>> So how do I receive and transmit cXML?
>>> Do I need to upgrade to PHP 5 to use the new XML libraries
>>> 
>>> Thanks for any help.
>>> 
>>> 
>>> On Nov 14, 2009, at 7:03 PM, Steve Winter wrote:
>>> 
>>>> Hi Frank,
>>>> 
>>>> So... what are you trying to do here...? I'm not familiar with cXML and punch-out, but have done
>>>> a bit of reading, and it sounds like the idea is that it's an XML schema used for B2B e-
>>>> commerce transactions... correct...?
>>>> 
>>>> So you've built a shopping cart, in PHP, which presumably has an FMP back end...
>>>> 
>>>> And now you need to send confirmations...? orders...? shipping details,....? to other remote
>>>> systems using cXML...?? Is that correct...
>>>> 
>>>> If that's the idea, then I can't see that it will be too much of a problem... the
>>>> structure/format/requirements of cXML seem to be well documented, and there's a DTD to
>>>> validate against, so your PHP simply needs to create the cXML document, and then POST that to
>>>> the supplier/client/shipper etc...
>>>> 
>>>> And then you need a receiving interface which can accept the responses, and process those...?
>>>> so that can be built in PHP, receive the cXML response and process it accordingly...??
>>>> 
>>>> Perhaps you could tell us a bit more about the actual problem you're trying to solve, and we
>>>> may be able to come up with some suggestions (and/or quote to do the work ;-)...
>>>> 
>>>> Cheers
>>>> Steve
>>>> 
>>> 
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>> 
>> Steve Winter
>> steve at bluecrocodile.co.nz
>> m: +44 77 7852 4776
>> 3 Calshot Court, Channel Way
>> Ocean Village, Southampton SO14 3GR
>> 
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list