User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 374,006 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,849 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser:
Views: 1146 | Replies: 0
Reply
Join Date: Mar 2008
Posts: 2
Reputation: poizn is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
poizn poizn is offline Offline
Newbie Poster

SOAP - register multiple functions

  #1  
Mar 6th, 2008
Hi all

I have created a SOAP server, and want to register multiple functions, but only the last function is registered (well is useable). If I call any of the other functions, they just return FALSE!

Here is my code

  // register function 1
  $server -> configureWSDL("func_1wsdl" , "urn:func_1wsdl");

  $server -> wsdl -> addComplexType("return_data_array"
    , "complexType"
    , "struct"
    , "all"
    , ""
    , array("id" => array("name" => "id" , "type" => "xsd:string")
            , "name" => array("name" => "name" , "type" => "xsd:string")));

  $server ->wsdl -> addComplexType("return_data"
    , "complexType"
    , "array"
    , ""
    , "SOAP-ENC:Array"
    , array()
    , array(
    array(
      "ref" => "SOAP-ENC:arrayType" , "wsdl:arrayType" => "tns:return_data_array[]"
           )
      )
    , "tns:return_data_array");

  $server -> register("func_1"
    , array("id" => "xsd:string")
    , array("return" => "tns:return_data")
    , "urn:func_1wsdl"
    , "urn:func_1wsdl#func_1");

  // register function 2
  $server -> configureWSDL("func_2wsdl" , "urn:func_2wsdl");

  $server -> wsdl -> addComplexType("return_data"
    , "complexType"
    , "struct"
    , "all"
    , ""
    , array("id" => array("name" => "id" , "type" => "xsd:string")
            , "name" => array("name" => "name" , "type" => "xsd:string")));

  $server -> register("func_2"
    , array("input_1" => "xsd:string")
    , array("return" => "tns:return_data")
    , "urn:func_2wsdl"
    , "urn:func_2wsdl#func_2");

Thats basically the code to register the two functions (I changed a few things like the function name and input and output variables, so if I messed something up while doing all that, my bad)

Any help would be appreciated.

Thanks in advance
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb RSS, Web Services and SOAP Marketplace
Thread Tools Display Modes

Other Threads in the RSS, Web Services and SOAP Forum

All times are GMT -4. The time now is 10:34 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC