Anyone here know anything about php / zen cart

terry_leopard

Scholar
Joined
Nov 10, 2005
Messages
54
I'm trying to set up an e commerce site that uses another companies e fulfillment service.

I need to be able to download the shop stock data using web services (soap)
and also to send back a custom xml form when a purchase is made

I'm using zen cart and I have examples of the SOAP files that I need to get the data from the fulfillment companies server and also examples of the xml form to send back, but I'm unsure of how to join the two things together.

Does anyone know of any resources I could use to read up on this or have experience of doing it?

All help would be appreciated
 
Thanks for that link!

Looks like in interesting site. I'm having real problems finding anyone who knows about this stuff, I asked in the Zen Cart forum and got no reply.
 
Assuming that when you say "SOAP file" you actually mean the WASDL file from the SOAP server, you could go here and get the necessary php code generated from the WASDL. With that in hand, you can use the functions provided in the php you get from the api generator to send your xml to the SOAP server.

Basically, SOAP lets you have a local class with functions that you use to access data on the SOAP server. Your program "thinks" it has everything locally, when in fact the data within the class instance is on the server.

The WASDL file is a description that a utility for your language (php) converts to code. I don't know of a stand-alone one for php since I don't do much with php. The website I linked to supposedly generates the php from the WASDL.

The php file you get will have functions and properties that you use just like they were any other class. You can pretty much ignore the whole network thing and just instantiate the class and do your thing through the API.

Here's a tutorial on using WASDL with php.
 

Back
Top Bottom