[Soap-Python] rpclib and Microsoft Office Research Service

Burak Arslan burak.arslan at arskom.com.tr
Thu May 17 10:49:10 CEST 2012


Hi Paul,

Sorry, I've missed your message for some reason.

1)

<tns:RegistrationResponse xmlns:tns="urn:Microsoft.Search">

and

<RegistrationResponse xmlns="urn:Microsoft.Search">

are equivalent, so I don't think there's an issue there.


2)

The response you get is this:

<ProviderUpdate xmlns="urn:Microsoft.Search.Registration.Response">
<Status>SUCCESS</Status>
<Providers>
<Provider>
<Id>{f656bd32-8aac-476d-b705-54677ed14b05}</Id>
<Name>Microsoft Search Server 2010</Name>
<QueryPath>http://some.sharepoint.site.com/test/_vti_bin/search.asmx</QueryPath>
<Type>SOAP</Type>
<Services>
<Service>
<Id>{f656bd32-8aac-476d-b705-54677ed14b05}</Id>
<Name>Hackalot</Name>
<Category>INTRANET_GENERAL</Category>
<Description>This service allows you to search the site : 
Banana</Description>
<Copyright>Microsoft Search Server 2010</Copyright>
<Display>On</Display>
</Service>
</Services>
</Provider>
</Providers>
</ProviderUpdate>

which says SUCCESS in capital letters no less, so it doesn't look so bad 
to me :)

it is formatted the right way considering it's a string. if you want to 
get it as xml, you should use the AnyXml type. or in your user code, you 
can use lxml.etree.{from,to}string to convert  it back to an xml 
representation.

does this help?

best,
burak

On 05/09/12 07:29, Paul Harrington wrote:
> 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> 
>
>
>
>
>
> _______________________________________________
> Soap mailing list
> Soap at python.org
> http://mail.python.org/mailman/listinfo/soap



More information about the Soap mailing list