Login   Register  
PHP Classes
elePHPant
Icontem

Soap ?

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Generic XML parser class  >  Generic XML parser class package blog  >  Processing XML with a...  >  All threads  >  Soap ?  >  (Un) Subscribe thread alerts  
Subject:Soap ?
Summary:Using your class in a web service context
Messages:2
Author:Daniel Francois
Date:2012-09-13 11:44:16
Update:2012-09-13 15:18:28
 

  1. Soap ?   Reply   Report abuse  
Picture of Daniel Francois
Daniel Francois
2012-09-13 15:01:53
Hello sir,

I've read your article and had a quick look at the source code, I'm sorry I couldn't inspect it more carefully.

I think your xml descripting method can be interesting for someone who doesnt want to learn about xml and xsds, and lacks an interesting feature which would be to convert this array to a xsd file, and also be able to parse a xsd file to generate your array format.

I think this because with the few years of coding in php in a business environment, I've been dealing many times with xml, but 100% for developping SOAP services.
If I wanted to use your class, for example to develop a soap server, in any case, I would have to create the array descripting the structure of the request's data I expect and then transcript it manually to a wsdl compliant format, xsd, which would be twice the pain ;)

This is an important facet of the use of xml format in php apps theses days.

That's also why I think your format description lacks a bit of interest because I still would have to learn another standard xml description language.

I hope you got my point.

  2. Re: Soap ?   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-09-13 15:18:28 - In reply to message 1 from Daniel Francois
XSD is just a format for describing XML documents but what most PHP developers know best is PHP because that is what they write every day.

Having to write a XSD definition just to parse a XML document is twice the pain that most PHP developers want to avoid when dealing with XML.

Other than that XSD is a format just validation purposes. It only supports data types that are specified in its specification. If you need to validate and extract data that needs to satisfy special validation rules, XSD cannot help you.

What this class offers you is a means to deal with common types with minimal pain writing almost no additional code, and for custom validation you just need to add just a few lines of custom PHP code.