473,327 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

how can i get an array from nu soap

hi all people, i am an infromatic student and i am starting to learn about webservices. i have a trouble with c# and nusoap. so Ihave this php webservice
Expand|Select|Wrap|Line Numbers
  1. <?
  2. // comienzo del script
  3. require_once('lib/nusoap.php');
  4. $servidor = new soap_server();
  5. $servidor->configureWSDL("Articuloswsdl","urn:Articuloswsdl");
  6. $servidor->register("usuarios",
  7. array('val' => 'xsd:string' ), // no pasa parámetros
  8. array("return" => "xsd:string"), // pero si recibe una respuesta en formato 'string'
  9. "urn:Articuloswsdl",
  10. "urn:Articuloswsdl#Posts",
  11. "rpc",
  12. "encoded",
  13. "Toma el nombre o titulo de los articulos publicados en sindicados.com"
  14. );
  15. function usuarios($val){
  16. $link = mysql_connect("localhost","root","213141");
  17. mysql_select_db("ws");
  18. $consulta = "select *from  usuarios";
  19. $query = mysql_query($consulta,$link);
  20. //creamos un array
  21. $datos1 = array();
  22.  
  23. $filas = mysql_affected_rows($link);
  24. for($i=0;$i<$filas;$i++)
  25. {
  26. array_push($datos1,(mysql_result($query,$i,"Nick")),mysql_result($query,$i,"Pass"));
  27. }
  28. return $datos1;
  29. }
  30. $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
  31. $servidor->service($HTTP_RAW_POST_DATA); 
  32. /*--
but i can't get the array in c#. this trouble is driving me crazy so i nedd help please thanks
May 17 '09 #1
0 1081

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: burdeen | last post by:
I've been trying to return an array with PHP5 soap. Is this not supported? or am i doing it wrong? Seems to return on the last element in the array. In my WSDL i've defined my return type as a...
0
by: Moshe Kravchik | last post by:
Hi! I have a following problem. I have a web service (written in ATL Server). It has 2 function, lets name them getData and setData. The getData returns a byte array, setData receives a byte...
0
by: helldiversafe-news | last post by:
Hi all, I will use a apache soap service with an .net c# client and have a problem with an complex array: <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope...
1
by: Matthew | last post by:
Using .NET 1.1 I trying to consume a web service that returns an integer and an array of type string which I declare and use line this Dim Results() As String Me.txtMain.Text =...
0
by: leon70 | last post by:
Hi Group, I built a gSoap 2.7.11 Web services client in C++ on AIX and have got it talking to the remote service. The service is sending back an array of objects to my client but the client is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.