NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
I want to select a specific PortType


Joined: 11 Nov 2007
Posts: 2
Reply with quote
Dear Sir,
i use NuSoap to handle a .wsdl file with php4

i select the operation i want by calling $soap_obj->call('operation_name', $param);

in my wsdl file i have many porttypes in each prottype many operation.

There is three porttypes have 2 operations with the same name.

so i want to select a specific porttype when i calling the operation.

how can i do it.

Thanks alot
View user's profileFind all posts by azoghbySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
wsdl defines endpoints in form of URLs and you can't change URLs and in particular you can't (and should not) change port without chaning endpoint in the wsdl.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 11 Nov 2007
Posts: 2
Reply with quote
Dear dmitri,
Thaks alot for your reply.

I feel that i can't illustrate to you what i want exactly, and here what i want exactly:

* if i have a wsdl file like this

Code:

<?xml ..... />
<definitions ........>
    <types>
   ........   
    </types>
    <message name="obj1.function1">
   .......
    </message>
    <message name="obj1.function1Response">
   .......
    </message>
   
    <message name="obj2.function1">
   .......
    </message>
    <message name="obj2.function1Response">
   .......
    </message>

    <portType name="obj1Port">
   <operation name="function1" .....>
      <input message="wsdlns:obj1.function1"/>
      <output message="wsdlns:obj1.function1Response"/>
   </operation>
    </portType>

    <portType name="obj2Port">
   <operation name="function1" .....>
      <input message="wsdlns:obj2.function1"/>
      <output message="wsdlns:obj2.function1Response"/>
   </operation>
    </portType>
     .......
     .......


where there are two objects every one have function, but the functions are with the same name "function1"

when i call the operation $soap->call("function1", $param)
the nusoap select one of the two operation which are with the same name "function1"
i don't know on which base the nusoap select one and didn't select the other.

so i want to tell nusoap that i want to call "function1" which was related to "obj2Port"
how can i do this.

i hope that you can get me, thanks alot, and i'am sorry for this long mess.

azoghby
View user's profileFind all posts by azoghbySend private message
I want to select a specific PortType
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic