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

[Condor-users] Re: SOAP wsdl to use?



Well, obviously the only difference between both request is the namespace in queryMasterAds...

After searching through both WSDLs I've seen these two lines and I've changed "unqualified" to "qualified", and now it works.

elementFormDefault="qualified"
attributeFormDefault="qualified"

Hope it can be useful.

I'm sure I'll post here again soon :-). Hope next time I've improved my SOAP skills...

Best regards


On 7/11/05, Juan Ignacio SÃnchez Lara <juanignaciosl@xxxxxxxxx> wrote:
Hello,

I'm -trying to- connect to condor with SOAP. I'd like to use php, so I'm trying to use NuSOAP (since PEAR implementation seemed not to work, as seen in previous posts). I began using the wsdl included with the last condor version, but I can not even ask for the version. Nevertheless, if I use the one listed in BirdBath site (http://www.cs.wisc.edu/condor/birdbath/condorCollector-6.7.5.wsdl) it seems to work.

Here's what I get with queryMasterAds with the wsdl included with condor (error message, request and response):

Fault

Array
(
[faultcode] => SOAP-ENV:Client
[faultstring] => Method 'queryMasterAds' not implemented: method name or namespace not recognized
)

Request

POST  HTTP/1.0
Host: localhost:9618
User-Agent: NuSOAP/0.7.0 (1.90)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: ""



Content-Length: 428

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:si=" http://soapinterop.org/xsd" xmlns:ns1563="
http://testuri.com"
><SOAP-ENV:Body><queryMasterAds xmlns=""/></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Content-Length: 596
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 SOAP-ENV:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Method 'queryMasterAds' not implemented: method name or namespace not recognized</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>


Here's the result with the BirdBath wsdl:

Result

Array
(
[result] => Array
(
[item] => Array
(
[item] => Array
(
[0] => Array

(
[name] => MyType
[type] => STRING-ATTR
[value] => DaemonMaster

)

[1] => Array
(
[name] => TargetType
[type] => STRING-ATTR

[value] =>
)

[2] => Array
(
[name] => ServerTime

[type] => INTEGER-ATTR
[value] => 1121113067
)

[3] => Array

(
[name] => Machine
[type] => STRING-ATTR
[value] => atlantis

)
.................................... (more Ads)



Request

POST  HTTP/1.0
Host: localhost:9618
User-Agent: NuSOAP/0.7.0 (1.90)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: ""
Content-Length: 438

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance " xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/
" xmlns:si=" http://soapinterop.org/xsd" xmlns:ns1403="http://testuri.com"><SOAP-ENV:Body><queryMasterAds xmlns="urn:condor"/></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 3350
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:queryMasterAdsResponse><result><item><item><name>MyType</name><type>STRING-ATTR</type><value>DaemonMaster</value></item><item><name>TargetType</name><type>STRING-ATTR</type><value></value></item><item><name>ServerTime</name><type>INTEGER-ATTR</type><value>1121113067</value></item><item><name>Machine</name><type>STRING-ATTR</type><value>atlantis</value></item><item><name>Name</name><type>STRING-ATTR</type><value>atlantis</value></item><item><name>MasterIpAddr</name><type>STRING-ATTR</type><value>&lt;127.0.0.1:1211&gt;</value></item><item><name>RealUid</name><type>INTEGER-ATTR</type><value>0</value></item><item><name>CondorVersion</name><type>STRING-ATTR</type><value>$CondorVersion:
6.7.8 Jun 9 2005 $</value></item><item><name>CondorPlatform</name><type>STRING-ATTR</type><value>$CondorPlatform: I386-LINUX_RH9 $</value></item><item><name>MyAddress</name><type>STRING-ATTR</type><value>&lt;127.0.0.1:1211&gt;</value></item><item><name>COLLECTOR_Timestamp</name><type>INTEGER-ATTR</type><value>1118333975</value></item><item><name>COLLECTOR_StartTime</name><type>INTEGER-ATTR</type><value>1121111822</value></item><item><name>MASTER_Timestamp</name><type>INTEGER-ATTR</type><value>1118333982</value></item><item><name>MASTER_StartTime</name><type>INTEGER-ATTR</type><value>1121111822</value></item><item><name>NEGOTIATOR_Timestamp</name><type>INTEGER-ATTR</type><value>1118333967</value></item><item><name>NEGOTIATOR_StartTime</name><type>INTEGER-ATTR</type><value>1121111822</value></item><item><name>STARTD_Timestamp</name><type>INTEGER-ATTR</type><value>1118333928</value></item><item><name>STARTD_StartTime</name><type>INTEGER-ATTR</type><value>1121111822</value></item><item><name>SCHEDD_Timestamp</name><type>INTEGER-ATTR</type><value>1118333934</value></item><item><name>SCHEDD_StartTime</name><type>INTEGER-ATTR</type><value>1121111822</value></item><item><name>MonitorSelfTime</name><type>INTEGER-ATTR</type><value>1121113022</value></item><item><name>MonitorSelfCPUUsage</name><type>FLOAT-ATTR</type><value>
0.022352</value></item><item><name>MonitorSelfImageSize</name><type>FLOAT-ATTR</type><value>5540.000000</value></item><item><name>MonitorSelfResidentSetSize</name><type>INTEGER-ATTR</type><value>2232</value></item><item><name>MonitorSelfAge</name><type>INTEGER-ATTR</type><value>1201</value></item><item><name>DaemonStartTime</name><type>INTEGER-ATTR</type><value>1121111822</value></item><item><name>UpdateSequenceNumber</name><type>INTEGER-ATTR</type><value>4</value></item><item><name>LastHeardFrom</name><type>INTEGER-ATTR</type><value>1121113027</value></item><item><name>UpdatesTotal</name><type>INTEGER-ATTR</type><value>5</value></item><item><name>UpdatesSequenced</name><type>INTEGER-ATTR</type><value>4</value></item><item><name>UpdatesLost</name><type>INTEGER-ATTR</type><value>0</value></item><item><name>UpdatesHistory</name><type>STRING-ATTR</type><value>0x00000000000000000000000000000000</value></item></item></result></condor:queryMasterAdsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>



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



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