![]() |
| Custom Schema vs. Schema on-the-fly |
|
Site Admin
|
Your code should be corrected a bit:
|
||||||||||||||
|
|
|||||||||||||||
|
The whole point of my post was to find a way to do that _without_ defining the types on-the-fly (i.e. addComplexType(...)) but instead using a schema file that I create.
After conversing with Dietrich, he informed me that I have to create my own WSDL file by hand in order to do what i want. I've done this and it seems to work for basic XML data types. I've having other issues with using NuSOAP and some simpleType elements that i've created in my custom schema. Thanks for your help, though |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
What's the advantage of going that way ?
If you belive you'd do it, you may cache WSDL file on the server. In this case you'll have to update it every time you change anything in arguments for published methods. It may gain little performance improvements but would lead to some inconveniences. I'd suggest you not write your own WSDL from scratches, but take whatsoever generated by nusoap, save it, correct if necessary and provide an URL to is as a WSDL. Not a big deal |
||||||||||||
|
|
|||||||||||||
|
The reason being that i want my own schema file...not one thats included in my WSDL. How can i reference a schema that's embeded inside a WSDL file from somewhere else?
|
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
If you need a way for processing pre-generated WSDL with your own way and take a schema in particular, you'd use XML parser like expat or libxml. NuSoap itself uses expat but for parsing envelopes, not for accessing WSDL.
|
||||||||||||
|
|
|||||||||||||
|
But why should i have to go that far? Shouldn't NuSOAP be complant to the W3C recommendations? If someone trying to access my SOAP services decides not to use NuSOAP to do it, will they be able to complete their requests? Likewise, if I don't use NuSOAP and someone else does, will it work then?
I'm just looking for the most compatible and compliant way to implement SOAP. The W3C recommendations say that I can reference external schema files in my WSDL, so I do. Should NuSOAP not allow this as well? And bearing all this in mind, are you not also telling me that the only way I can get Named Types to work with NuSOAP is to declare them on-the-fly and have NuSOAP generate the schema when it generates the WSDL? (Since using my own schema file doesn't seem to be working for anything other than standard xml types) |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
I don't know. It was your idea...
Sure it works fine as a soap client as well as a soap server with many other soap clients and servers created in other tools.
Does it mean that you have a 3rd party schema files and need to work with them ? How are you going to implement your functionality in php in this case ? With nusoap being used as a soap server you effectively have a way to publish your methods/services written in php using soap protocol. What else do you need ? |
||||||||||||||||||
|
|
|||||||||||||||||||
|
I simply want an external schema file. That's it
Can someone help me? It would be greatly appreciated. |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
That's right, W3C proposes a lot but very few things are really done in the most products. Actually I didn't intent to critique at all, quite the opposite all I'd like to do is to get closer to understanding what you really want to get. If you only critique nusoap for missing of some features proposed by W3C, that's it.
|
||||||||||||
|
|
|||||||||||||
|
I guess that's what i was also doing. However, i've been informed that i'll be embedding the schema in the WSDL anyways. But its good to know what NuSOAP can and can;t do.
I do have other questions now tho...i'll post them in a new thread. Thanks again |
||||||||||||
|
|
|||||||||||||
| Custom Schema vs. Schema on-the-fly |
|
||
|
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by


RSS2 Feed