I'm attempting to get some web services up and running using PHP, and I'm having a hell of a time getting things to work properly. Before I eliminate PHP from the equation, I need to be absolutely sure that my schema and wsdl documents are correct. The problem that I'm having is that PHP is complaining that my types are unknown, and PHP SOAP support/documentation sucks at best.
This is my first attempt at creating/consuming web services, so it's a little difficult to know if I have all the syntax correct. From everything that I've read over the past week, it would appear that I'm following the standards and doing things the correct way. I'm a bit confused with the whole namespace thing, however, as I don't know if I'm supposed to prepend certain elements or where exactly I should be defining my namespaces. Following examples and reading through the specs, again, it appears that I have things in order.
If possible, I'd like some feedback on the following documents. Essentially, UserDefinedDataTypes.xsd defines some custom types. Agent.xsd/Result.xsd includes UserDefinedDataTypes.xsd, then both of those schemas are included in AccountManagement.wsdl. I'm leaving Result.xsd out because it's pretty much the same as Agent.xsd, with exception to the elements returned.
BTW, I should mention that when I use the standard types (xsd:string, xsd:integer, etc.) directly in my WSDL to define the elements, everything works properly. It's only when I take those out and put them in separate schema files that I'm having a problem.
Planning a vacation to Thailand? Visit www.ezwaythailand.com for reliable tour guide services and tour package offerings.