[Fedora-suds-list] Wrong xml created
Johann Spies
jspies at sun.ac.za
Fri Nov 12 08:32:31 UTC 2010
navraag = qclient.factory.create('search')
print 'Navraag (search): %s' % navraag
==========================================
(search){
queryParameters =
(queryParameters){
databaseID = "WOS"
editions[] = <empty>
queryLanguage = "en"
symbolicTimeSpan = None
timeSpan =
(timeSpan){
begin = None
end = None
}
userQuery = "CU = *South Africa* and PY = 1945"
}
retrieveParameters =
(retrieveParameters){
collectionFields[] = <empty>
count = 5
fields[] = <empty>
firstRecord = 1
options[] = <empty>
}
================================================
This seems correct but look at the SOAP request sent to the server where
I have indicated the troublesome lines with "Problem -->" which should not
be there. How do I solve this?
===================================
qclient.service.search(navraag)
ERROR:suds.client:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://woksearch.cxf.wokmws.thomsonreuters.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<ns0:Body>
<ns1:search>
Problem --> <queryParameters>
<queryParameters>
<databaseID>WOS</databaseID>
<queryLanguage>en</queryLanguage>
<userQuery>CU = *South Africa* and PY = 1945</userQuery>
</queryParameters>
<retrieveParameters>
<count>5</count>
<firstRecord>1</firstRecord>
</retrieveParameters>
Problem --> </queryParameters>
</ns1:search>
</ns0:Body>
</SOAP-ENV:Envelope>
======================================
Help will be appreciated.
Regards
Johann
--
Johann Spies Telefoon: 021-808 4699
Databestuurder / Data manager
Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie
Centre for Research on Evaluation, Science and Technology
Universiteit Stellenbosch.
"He that loveth father or mother more than me is not
worthy of me: and he that loveth son or daughter more
than me is not worthy of me. And he that taketh not
his cross, and followeth after me, is not worthy of
me." Matthew 10:37,38
More information about the suds
mailing list