•
•
•
•
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,618 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,294 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: 1148 | Replies: 0
![]() |
•
•
Join Date: Mar 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb RSS, Web Services and SOAP Marketplace
- Previous Thread: XSLT: Dynamical styling with Javascript
- Next Thread: session variable


Linear Mode