WSDL-problem
| From: | Espen Frimann Koren | Date: | Fri, 23 May 2008 09:15:26 +0000 |
| Subject: | WSDL-problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-274647@lists.php.net to get a copy of this message | ||
Hi.
I have a problem with two messages in different namespaces, but with the
same name. Example sketch:
one.wsdl:
---------
<definitions targetNamespace="urn:one" xmlns:tns="urn:one" xmlns="
http://schemas.xmlsoap.org/wsdl/">
<message name="getInt" ...>
<portType> ....
<binding name="OneBinding"> ...
</definitions>
two.wsdl:
---------
<definitions targetNamespace="urn:two" xmlns:tns="urn:two" xmlns="
http://schemas.xmlsoap.org/wsdl/">
<message name="getInt" ...>
<portType> ....
<binding name="TwoBinding"> ...
</definitions>
server.wsdl:
------------
<definitions targetNamespace="urn:server" xmlns:tns="urn:server"
xmlns:one="urn:one" xmlns:two="urn:two" xmlns="
http://schemas.xmlsoap.org/wsdl/">
<import namespace="urn:one" location="one.wsdl" />
<import namespace="urn:two" location="two.wsdl" />
<service>
<port binding="one:OneBinding"> ....
<port binding="two:TwoBinding"> ....
</service>
</definitions>
I have a server made using gSOAP, and get the functions one__getInt ang
two__getInt. Also using gSOAP to make a C client, I get
soap_call_one__getInt and soap_call_two__getInt.
Using SoapClient("server.wsdl") in PHP I get an error that 'getInt' is
already defined. I suppose this is a bug or a not-yet-implemented feature.
Any comments?
Sp1