[cl-soap-devel] a couple of bug fixes

Carlos Ungil carlos.ungil at bluewin.ch
Thu Sep 8 22:12:31 UTC 2005


Hello Sven,

I was trying to reproduce the following message (generated using the  
perl module SOAP:Lite):

<SOAP-ENV:Envelope  
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"  
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"  
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"  
xmlns:xsd="http://www.w3.org/1999/XMLSchema"  
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/ 
encoding/"><SOAP-ENV:Header><AuthenticationInfo><userName>xxx</ 
userName><password>xxx</password><authentication/><locale/><timeZone/ 
 ></AuthenticationInfo></SOAP-ENV:Header><SOAP-ENV:Body><namesp1: 
OpGetList  
xmlns:namesp1="urn:PRMS_ProblemMgmt_AIS"><Qualification>'Short  
Description' LIKE  
"Probl%"</Qualification></namesp1:OpGetList></SOAP-ENV:Body></SOAP-ENV: 
Envelope>

Using my soap-envelope function, the following code

(soap-call end-point
                               '(((:|AuthenticationInfo|)
				 ((:|userName|) "xxx")
				 ((:|password|) "xxx")
				 ((:|authentication|))
				 ((:|locale|))
				 ((:|timeZone|))))
                               `(((ns1::|OpGetList| :|xmlns:ns1| ,ns)
				 ((:|Qualification|) "'Short Description' LIKE \"Prob%\""))))

produces the quite similar xml message

<soapenv:Envelope  
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  
xmlns:xsd="http://www.w3.org/1999/XMLSchema"  
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><soapenv: 
Header><AuthenticationInfo><userName>xxx</userName><password>xxx</ 
password><authentication/><locale/><timeZone/></AuthenticationInfo></ 
soapenv:Header><soapenv:Body><ns1:OpGetList  
xmlns:ns1="urn:PRMS_ProblemMgmt_AIS"><Qualification>'Short Description'  
LIKE  
"Prob%"</Qualification></ns1:OpGetList></soapenv:Body></ 
soapenv:Envelope>

I've just noticed that the perl-generated version contains two  
properties related to the encoding:
- SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" (I  
reproduced this in the lisp version)
- xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" (I didn't  
include that, but it worked the same)

I don't know if those are "correct" soap messages, in any case they  
work. But in fact I've not tried to connect to the web service using  
the original cl-soap code, it might work as well.

Cheers,

Carlos





More information about the cl-soap-devel mailing list