[Soap-Python] rpclib and Microsoft Office Research Service

Paul Harrington phrrngtn at panix.com
Wed May 9 06:29:01 CEST 2012


Hi,
I am attempting to implement a stub Microsoft Office Research Service 
using rpclib on Python 2.6. I have no prior experience with SOAP and 
little with XML so it may be the case that I am doing something very sill. 
My ultimate goal is to have a Python-based service that can be used with 
the Office research pane. My proximate goal is to fiddle around with the 
namespaces used for soap responses so that I can come up with a SOAP 
response that is digestable by Excel.

regards,

pjjH


As per
http://office.microsoft.com/Research/query.asmx?op=Registration, this is 
what the registration should look like. note the  <RegistrationResponse 
xmlns="urn:Microsoft.Search"> within the soap body


HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?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>
     <RegistrationResponse xmlns="urn:Microsoft.Search">
       <RegistrationResult>string</RegistrationResult>
     </RegistrationResponse>
   </soap:Body>
</soap:Envelope>


However, when I try and register my service from Excel, I get the 
following interaction as reported by fiddler. Note the 
<senv:Body><tns:RegistrationReponse><tns:RegistrationResult> which use 
prefixes which are defined in the soap envelope.


HTTP/1.1 200 OK
Content-Length: 1648
Content-Type: text/xml; charset=utf-8
Date: Wed, 09 May 2012 03:59:38 GMT
Server: SPACESHIP

<?xml version='1.0' encoding='UTF-8'?>
<senv:Envelope 
xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" 
xmlns:tns="urn:Microsoft.Search" 
xmlns:plink="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" 
xmlns:xop="http://www.w3.org/2004/08/xop/include" 
xmlns:senc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:s12env="http://www.w3.org/2003/05/soap-envelope/" 
xmlns:s12enc="http://www.w3.org/2003/05/soap-encoding/" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:senv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"><senv:Body><tns:RegistrationResponse><tns:RegistrationResult>
&lt;ProviderUpdate 
xmlns="urn:Microsoft.Search.Registration.Response"&gt;&lt;Status&gt;SUCCESS&lt;/Status&gt;&lt;Providers&gt;&lt;Provider&gt;&lt;Id&gt;{f656bd32-8aac-476d-b705-54677ed14b05}&lt;/Id&gt;&lt;Name&gt;Microsoft 
Search Server 
2010&lt;/Name&gt;&lt;QueryPath&gt;http://some.sharepoint.site.com/test/_vti_bin/search.asmx&lt;/QueryPath&gt;&lt;Type&gt;SOAP&lt;/Type&gt;&lt;Services&gt;&lt;Service&gt;&lt;Id&gt;{f656bd32-8aac-476d-b705-54677ed14b05}&lt;/Id&gt;&lt;Name&gt;Hackalot&lt;/Name&gt;&lt;Category&gt;INTRANET_GENERAL&lt;/Category&gt;&lt;Description&gt;This 
service allows you to search the site : 
Banana&lt;/Description&gt;&lt;Copyright&gt;Microsoft Search Server 
2010&lt;/Copyright&gt;&lt;Display&gt;On&lt;/Display&gt;&lt;/Service&gt;&lt;/Services&gt;&lt;/Provider&gt;&lt;/Providers&gt;&lt;/ProviderUpdate&gt;

</tns:RegistrationResult></tns:RegistrationResponse></senv:Body></senv:Envelope>






More information about the Soap mailing list