login button

Need WSDL Schema Import/Include How-To

Forums :

Is there any documentation on tips for avoiding problems when importing schemas in WSDL? I've had tremendous problems getting it to work and see in the forums that I'm not the only one. I also see in your bug tracker that you don't plan on addressing the problem because it has to do with how PHPs DOM functions work. It would be great to see some bullet points on what to avoid so that your nice framework can work correctly. Have you tried creating a PHP bug report/feature request about the appendChild optimization that is causing problems? Maybe a future PHP version can have an option to disable namespace optimization?

One tip I can recommend is placing the 'attributeFormDefault="qualified" elementFormDefault="qualified"' attributes into the schema declarations. That seemed to avoid some fatal namespace exceptions.

Thanks!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi gcleaves, Thanks for your

Hi gcleaves,
Thanks for your suggestions. I like to comment on several suggestions you made.

And PHP DOM appendChild is not a bug. It doesn't aware that it is a schema or WSDL which refer other elements within attribute values. So I don't think reporting PHP Dom will make them to consider remove that optimization. The only way we can fix it is remove the DOM code and use some other ways to build the XML (which I don't think is a possible option).

I think the best option is giving user an tool to generate a WSDL without any import/include tags. So they can validate that WSDL and if there anything wrong they can edit it manually and use it in the rest of their application.

Thanks
Dimuthu

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.