LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-06-2014, 12:59 PM   #1
a1024
LQ Newbie
 
Registered: May 2014
Posts: 1

Rep: Reputation: Disabled
Unhappy PHP SOAP server returns 2D array using NuSOAP Library


Hi....

I am tired of trying to convert the following code to the 2D array, but I could not ...
Could you help me ... please ...

(PHP SOAP server returns array using NuSOAP Library)
PHP Code:
$server->wsdl->addComplexType("ArrayOfString"
                 
"complexType"
                 
"array"
                 
""
                 
"SOAP-ENC:Array"
                 array(), 
                 array(array(
"ref"=>"SOAP-ENC:arrayType","wsdl:arrayType"=>"xsd:string[]")), 
                 
"xsd:string");

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


$server->register('myfunc',  // method name
        
array(),  //input
        
array('return'=>'tns:ArrayOf2D'),  //output
        
'urn:hellowsdl' ,  // namespace
        
'urn:hellowsdl#hello',  // soapaction
        
'rpc',  // style
        
'encoded',  // use
        
'Say hello to the caller'  // documentation
        
);

function 
myfunc() {
    
$arr = array();
    
array_push$arr, array("a","s","d") );
    
array_push$arr, array("t","y","u") );
    return 
$arr;


Last edited by a1024; 05-06-2014 at 01:18 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SOAP server returns array using NuSOAP Library Not Working sobin.babu Programming 0 01-07-2014 05:26 AM
php / SOAP - is it possible to return many values in a soap request? eantoranz Programming 1 04-25-2012 03:21 PM
PHP SOAP server returns array using NuSOAP Library mohtasham1983 Programming 2 11-18-2007 09:27 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration