[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] SOAP with .net (mono)



Hello,

After trying to connect with PHP (I'm waiting for Matt's response) I'm
trying with C# under mono. I can't manage to get even version number.
It throws null exception. Here's the code:

using System;

class Condor {
public static void Main(string[] args) {
	condorCollector collector = new condorCollector();

	StringAndStatus version = collector.getVersionString();
	if(version != null) {
		Console.WriteLine("Mensaje: "+version.message);
		Console.WriteLine("Estado: "+version.status.code
			+" (\""+version.status.message+"\")");
	} else {
		Console.WriteLine("Null :-(");
	}
}

}




Here's Collector log:

5/30 18:43:17 Received HTTP POST connection from <127.0.0.1:3395>
5/30 18:43:17 Current Socket bufsize=85k
5/30 18:43:17 Current Socket bufsize=212k
5/30 18:43:17 About to serve HTTP request...
5/30 18:43:17 Completed servicing HTTP request



Here's what I trap with Ethereal (apologize for the binary nonsense):

ÃÃÂÂÃÃT]{YBE4Ã(@@sÃhTÃT-Ã ÃÃ
B0ÃB0ÃX]BÃJE<Ã{@@t%TÃN Ã>Ã@

B@5X]WÃJE<@@<ÂTH(c)oTÃO ÃÃ@

B@5B@5X]ÂÃBE4Ã}@@t%TÃOTH(c)p ÃÂ
B@5B@5X]#R<E.Ã@@s%TÃOTH(c)pâ Ã"
B@KB@5POST / HTTP/1.1
User-Agent: Mono Web Services Client Protocol 1.1.4322.573
SOAPAction: "urn:condor/getVersionString"
Content-Type: text/xml; charset=utf-8
Content-Length: 285
Expect: 100-continue
Connection: keep-alive
Host: localhost:9618

X]1RBE4ÃE@@S|TH(c)pTÃI Ã
B@KB@KX]ÃR_EQÃ@@s%TÃITH(c)pâ ÃE
B@KB@K<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><getVersionString
xmlns="urn:condor" /></soap:Body></soap:Envelope>X]ÃRBE4ÃG@@SzTH(c)pTÃf
Ãl
B@KB@KX]'[WEIÃI@@ScTH(c)pTÃfâ Ã=
B@MB@KHTTP/1.1 100 ContinueX]2[BE4Ã@@t%TÃfTH(c) ÃS
B@MB@MX]u[DE6ÃK@@StTH(c)TÃfâ Ã*
B@MB@M
X]{[BE4Ã@@t%TÃfTH(c) ÃQ
B@MB@MX]Â[DE6ÃM@@SrTH(c)TÃfâ Ã*
B@MB@M
X]Â[BE4Ã@@t%TÃfTH(c) ÃO
B@MB@MX]8\ÂEÂÃO@@PÃTH(c)TÃfâ
B@MB@MHTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 530
Connection: close

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:condor="urn:condor"><SOAP-ENV:Body><condor:getVersionStringResponse><response><status><code>SUCCESS</code></status><message>$CondorVersion:
6.7.7 Apr 27 2005
$</message></response></condor:getVersionStringResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>X]?\BE4Ã@@t%TÃfTHÂÃ
ÂÃ
B@MB@MX]h\BE4ÃQ@@SpTHÂÃTÃf ÂÃ
B@MB@MX]C{BE4Ã@@t%TÃfTHÂÃ ÂÃ
B@UB@MX]P{BE4ÃS@@SnTHÂÃTÃg ÂÃ


Thanks very much. PHP (Pear) SOAP help would be really appreciated...





-- 
Juan Ignacio SÃnchez Lara
Ingeniero TÃcnico en InformÃtica de Sistemas