Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Adam Trachtenberg's Blog:
eBay SOAP Update - Syntax Matters
Oct 24, 2005 @ 10:55:45

With an update to a previous post, Adam Trachtenberg has posted some SOAP code that shows how he's using the classmap option in PHP5's SOAP libraries.

I saw a request for some actual SOAP code, so I will try and oblige. I don’t want to publish the entire code because there’s lots of messy stuff that’s specific to eBay’s SOAP API. I’ll talk about that some other time, but for now, those details just get in the way.

Therefore, I’ll pull out a few lines, combine that with some hand waving, and just hope for the best.

With this code he cleans up the interface to the results of the SOAP query, making it a snap to use more familiar-looking functionality to iterate through the results. And, by using a __toString method inside the class, he creates "pretty printing" for the entire result set...

tagged:

Link:


Trending Topics: