WSDL-problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux