Current location: Hot Scripts Forums » Programming Languages » PHP » nusoap ->function ??


nusoap ->function ??

Reply
  #1 (permalink)  
Old 08-13-08, 06:18 AM
jogisarge jogisarge is offline
New Member
 
Join Date: Oct 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
nusoap ->function ??

Hello @all,

i am new and i try to create a webservice using nusoap.
the service should provide a function that becomes a arraylist with parms and return another arraylist.
my problem is, i dont know how to code the register method for this function ??

my Code so far:
PHP Code:

require_once 'nusoap.php';
  
$soap = new soap_server();
$soap->configureWSDL('IDSTEST''http://www.test-server.de/'); $soap->wsdl->schemaTargetNamespace 'http://soapinterop.org/xsd/';

$soap->register(
    
'strtest',
    array(
      
'parray' => 'xsd:????????????????'
    
),
    array(
      
'farray' => 'xsd:????????????????????????'
    
),
    
'http://soapinterop.org/'
);
$soap->service(isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA ''); function strtest($parray) {
    
// business logic ...
    
return $farray;
}


// ------------- Client -------------
$funcarray[0] = array("parm1"="1","parm2"="car","parm3"="green");
$funcarray[1] = array("parm1"="2","parm2"="bike","parm3"="red");
$funcarray[2] = array("parm1"="3","parm2"="mbike","parm3"="blue");
 
$soap = new soapclient('http://...?wsdl'true); $proxy $soap->getProxy();
  
$erglist$proxy->strtest($funcarray); 
can anybody give me some help, to get the service running?
perhaps anybody has examples of function with array as parms with the wsdl-files, so i can look at.

gruß jogi

Last edited by Nico; 08-13-08 at 08:06 AM. Reason: Changed URL by request.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


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

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 08:23 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.