NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
PLEASE HELP :) ArrayOfstring problem in input parameter.


Joined: 09 Jan 2008
Posts: 1
Reply with quote
Hi, I am newbie to nuSoap I need to have some function that could accept array of string as
parameter.

I am using VS.net 2055 + C# to connect to this webservice but unfortunately when I try to update
the web reference I got this message :




this is my nusoap server code in php:

Code:

<?
require("../inc/Config.inc.php");
require ("nusoap.php");
$Server = new soap_server();
$Server->configureWSDL('Integration Services', 'urn:intserv');

$Server->wsdl->addComplexType(
   'ArrayOfstring',
   'complexType',
   'array',
   '',
   'SOAP-ENC:Array',
   array(),
   array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'string[]')),
   'xsd:string'
);

$Server->register('echoStringArray',
   array('inputStringArray'=>'[b]tns:ArrayOfstring[/b]'),
   array('return'=>'[b]tns:ArrayOfstring[/b]'),
   'http://soapinterop.org/');
function echoStringArray($inputStringArray)
{
   return $inputStringArray;
}

$POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : '';                        
$Server->service($POST_DATA);
?>


I am sure that nuSoap has this ability, cuz I could connect to : http://myserver/server.php successfully and there are some
methods with array of string !

please help me ..........
View user's profileFind all posts by amirnasserSend private message


Joined: 16 Dec 2007
Posts: 5
Reply with quote
Hi ,I am newbie at this also.
i recently had a similar error while trying to generate a C# proxy class
to connect to a .Net web service.
What does the WSDL file look like.
Can you post it?
View user's profileFind all posts by trini00Send private message
PLEASE HELP :) ArrayOfstring problem in input parameter.
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