Take a look at the Axis guide for a good list of primitives: http://ws.apache.org/axis/java/user-guide.html As for arrays, I think they should always be encoded as an Array and qualified with the namespace. For objects, I would look at the auto translation system that is already in PEAR. This is more or less what PEAR will do for an incoming request (i.e. automatically create an object from the WSDL). Do not forget WSDL simpleTypes so you can use enumerations. FYI, I think what's needed more then this is something like wsdl2php (like Axis has wsdl2java). PEAR has a pretty flexible SOAP_Value API right now, but it sucks that you have to write all of your objects by hand. If there was something to automatically generate these, this would go along way to speeding up development. Just my .02 Al On Sun, 2004-05-16 at 21:10 +0100, Davey wrote: > Hi, > > I'm currently writing some code to automatically expose > any given PHP class/function as a SOAP service using WSDL. > > I've currently got it finding all input args, their types, any > documentation, the return value type and obviously function names :) > > Additionally, I've written a WSDL generation package, which allows you > to create WSDL using like: > > $wsdl = new WSDL(...); > > $wsdl->addPortType(....); > > $wsdl->addService(....); > > etc > > What I am looking to do, is to have a single XSD that describes all the > base PHP simple and complex types, as PHP see's them. However, my XSD > knowledge is very little... > > What I want is this: > > string -> xsd:string > integer -> xsd:int > boolean -> xsd:boolean > float -> xsd:float > array -> xsd:struct or soap-enc:Array (not sure struct can be used) > where its elements can be xsd:anyType > object -> xsd:struct where its elements can be xsd:anyType > mixed -> xsd:anyType > null -> ??? > > The users of my WSDL package will be able to specify their own custom > XSD's too, but I want a default, catch-all XSD. > > Any help on this would be greatly appreciated. If you're interested, I > am thinking of proposing my WSDL package to PEAR, if I don't it will be > released as GPL code along with the rest of my code. > > - Davey > > -- > PHP Soap Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php