Click here to Skip to main content
15,915,094 members
Home / Discussions / C#
   

C#

 
Questionmobile application using c# Pin
Zeyad Jalil8-Nov-08 20:16
professionalZeyad Jalil8-Nov-08 20:16 
AnswerRe: mobile application using c# Pin
Muammar©8-Nov-08 23:50
Muammar©8-Nov-08 23:50 
QuestionProxy and AxWebBrowser Pin
lalspo8-Nov-08 19:09
lalspo8-Nov-08 19:09 
AnswerRe: Proxy and AxWebBrowser [modified] Pin
sph3rex9-Nov-08 0:58
sph3rex9-Nov-08 0:58 
GeneralRe: Proxy and AxWebBrowser Pin
lalspo9-Nov-08 23:41
lalspo9-Nov-08 23:41 
GeneralRe: Proxy and AxWebBrowser Pin
sph3rex9-Nov-08 23:54
sph3rex9-Nov-08 23:54 
GeneralRe: Proxy and AxWebBrowser Pin
lalspo10-Nov-08 23:19
lalspo10-Nov-08 23:19 
QuestionC# and NUSOAP, blank results Pin
Patricio Tapia8-Nov-08 16:38
Patricio Tapia8-Nov-08 16:38 
Hi i'm working in a C# client proyect, that client call SOAP methos from a PHP NUSOAP

this is the method using in PHP (nusoap)

	require_once('lib/nusoap.php');
    $server = new soap_server();
	$ns='http://localhost/';
	$server->configurewsdl('ApplicationServices',$ns);
	$server->wsdl->schematargetnamespace=$ns;
	$server->register('prueba',array('texto' => 'xsd:string'),array('return' => 'xsd:string'),$ns);
	$POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA'])
                ? $GLOBALS['HTTP_RAW_POST_DATA'] : '';

// pass our posted data (or nothing) to the soap service
	$server->service($POST_DATA);   
	
	function prueba($texto) {
		$var1 = "Tu texto es: " . $texto;
		return $var1;
	}
      exit();
?>


well, the soap code works fine. Now, the C# client
namespace soap1
{
    [System.Web.Services.WebServiceBinding(Namespace = "http://localhost/", Name = "ApplicationServices")]
    public class localhost1 : System.Web.Services.Protocols.SoapHttpClientProtocol
    {

        [System.Diagnostics.DebuggerStepThrough()]
        public localhost1()
        {
            this.Url = "http://localhost/logeo.php";
        }

        [System.Web.Services.Protocols.SoapDocumentMethod("http://localhost/logeo.php",
            RequestNamespace = "http://localhost/",
            ResponseNamespace = "http://localhost/",
            Use = System.Web.Services.Description.SoapBindingUse.Literal,
            ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]

        public string prueba(string texto)
        {
            object[] resultado = this.Invoke("prueba", new object [] { texto });
            return(Convert.ToString(resultado[0]));
        }
        //[System.Diagnostics.DebuggerStepThrough]

   }

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            localhost1 app1 = new localhost1();
            string s = app1.prueba("pato");
            MessageBox.Show(s);
        }
   }
}


now, the c# code here, works fine and they detect my php method
¿the problem?
well, in that line
string s = app1.prueba("pato");

the "s" variable has in blank, no result, no value return

i test the SOAP server code in a SOAP client code and works fine, return a string value, but in this c#, no string value returns. why?? Confused | :confused:


NOTE: Sorry for my BAD english
Questionhow to use formating in richtextbox.. Pin
raj2313628-Nov-08 16:34
raj2313628-Nov-08 16:34 
AnswerRe: how to use formating in richtextbox.. Pin
sph3rex9-Nov-08 1:00
sph3rex9-Nov-08 1:00 
GeneralRe: how to use formating in richtextbox.. Pin
raj2313629-Nov-08 19:29
raj2313629-Nov-08 19:29 
GeneralRe: how to use formating in richtextbox.. Pin
sph3rex9-Nov-08 19:36
sph3rex9-Nov-08 19:36 
GeneralRe: how to use formating in richtextbox.. Pin
raj2313629-Nov-08 19:43
raj2313629-Nov-08 19:43 
QuestionDocking a Windows Form to the edge of a screen Pin
Jordanwb8-Nov-08 16:05
Jordanwb8-Nov-08 16:05 
AnswerRe: Docking a Windows Form to the edge of a screen Pin
sph3rex9-Nov-08 1:03
sph3rex9-Nov-08 1:03 
AnswerRe: Docking a Windows Form to the edge of a screen Pin
Jordanwb9-Nov-08 2:57
Jordanwb9-Nov-08 2:57 
GeneralRe: Docking a Windows Form to the edge of a screen Pin
Eddy Vluggen9-Nov-08 22:02
professionalEddy Vluggen9-Nov-08 22:02 
QuestionDoes any one know about how to code for automated shift scheduling using genetic algorithm?? Pin
hiewmoi8-Nov-08 11:01
hiewmoi8-Nov-08 11:01 
QuestionColour clicker Pin
boberick28-Nov-08 1:41
boberick28-Nov-08 1:41 
GeneralRe: Colour clicker Pin
Luc Pattyn8-Nov-08 2:53
sitebuilderLuc Pattyn8-Nov-08 2:53 
AnswerRe: Colour clicker Pin
Muammar©8-Nov-08 23:59
Muammar©8-Nov-08 23:59 
QuestionClosing sockets in asynchronous TCP server Pin
Metal767-Nov-08 22:42
Metal767-Nov-08 22:42 
AnswerRe: Closing sockets in asynchronous TCP server Pin
Nicholas Butler8-Nov-08 1:01
sitebuilderNicholas Butler8-Nov-08 1:01 
GeneralRe: Closing sockets in asynchronous TCP server Pin
Metal768-Nov-08 1:10
Metal768-Nov-08 1:10 
GeneralRe: Closing sockets in asynchronous TCP server Pin
Nicholas Butler8-Nov-08 2:39
sitebuilderNicholas Butler8-Nov-08 2:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.