Export (0) Print
Expand All

SOAP Implementation for Web SourceType

Bing

This topic contains the following details of a Web SourceType query sent to the SOAP interface:

  • Request Example

  • Response Example

For an example of code that might generate the request in this topic, see SOAP Code Samples (Web SourceType).

This section contains an example of an HTTP query string that the aforementioned code might generate.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <SearchRequest xmlns="http://schemas.microsoft.com/LiveSearch/2008/03/Search">
         <parameters>
            <Market>en-us</Market>
            <Query>msdn blogs</Query>
            <AppId>Insert your AppId here</AppId>
            <Adult>Moderate</Adult>
            <Options>
               <SearchOption>EnableHighlighting</SearchOption>
            </Options>
            <Sources>
               <SourceType>Web</SourceType>
            </Sources>
            <Web>
               <Offset>0</Offset>
               <Count>10</Count>
               <Options>
                  <WebSearchOption>DisableHostCollapsing</WebSearchOption>
                  <WebSearchOption>DisableQueryAlterations</WebSearchOption>
               </Options>
            </Web>
         </parameters>
      </SearchRequest>
   </soap:Body>
</soap:Envelope>

This section contains an example of a response that Bing might return when sent the query string in the previous section:

<?xml version="1.0" encoding="utf-8"?>
<!--pageview_candidate-->
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <SearchResponse xmlns="http://schemas.microsoft.com/LiveSearch/2008/03/Search">
         <parameters>
            <Version>2.0</Version>
            <Query>
               <SearchTerms>msdn blogs</SearchTerms>
            </Query>
            <Web>
               <Total>1490</Total>
               <Offset>0</Offset>
               <Results>
                  <WebResult>
                     <Title>Monads</Title>
                     <Description>Monad 1 2 Manifesto . Jeffrey P. Snover. Aug 8, 2002. Version 1.2. What is Monad? Monad is the next generation platform for administrative automation.</Description>
                     <Url>http://blogs.msdn.com/powershell/attachment/1910567.ashx</Url>
                     <DisplayUrl>http://blogs.msdn.com/powershell/attachment/1910567.ashx</DisplayUrl>
                     <DateTime>2008-10-29T05:27:14Z</DateTime>
                  </WebResult>
                  <WebResult>
                     <Title>The Trouble with Threat Modeling </Title>
                     <Description>Larry Osterman lays out some other reasons threat modeling is hard in a blog post: http://blogs.msdn.com/larryosterman/archive/2007/08/30/threat-modeling-once-again.aspx</Description>
                     <Url>http://blogs.msdn.com/sdl/attachment/7702305.ashx</Url>
                     <DisplayUrl>http://blogs.msdn.com/sdl/attachment/7702305.ashx</DisplayUrl>
                     <DateTime>2008-10-29T03:25:32Z</DateTime>
                  </WebResult>
                  <WebResult>
                     <Title>Mobile Messaging with Exchange Server and Windows Mobile 5.0-based ... </Title>
                     <Description>Security for Windows Mobile Messaging in the Enterprise . Date: February 2007. Applies to: Windows Mobile 5.0 with MSFP Windows Mobile 6 Exchange Server 2003 SP2</Description>
                     <Url>http://blogs.msdn.com/jasonlan/attachment/1873662.ashx</Url>
                     <DisplayUrl>http://blogs.msdn.com/jasonlan/attachment/1873662.ashx</DisplayUrl>
                     <DateTime>2008-10-23T09:52:02Z</DateTime>
                  </WebResult>
                  <WebResult>
                     <Title>Framework Design Studio Quick Start Guide</Title>
                     <Description>Framework Design Studio Quick Start Guide . Framework Design Studio is a tool developed to help in designing and reviewing managed reusable API libraries.</Description>
                     <Url>http://blogs.msdn.com/kcwalina/attachment/8357773.ashx</Url>
                     <DisplayUrl>http://blogs.msdn.com/kcwalina/attachment/8357773.ashx</DisplayUrl>
                     <DateTime>2008-10-31T17:27:50Z</DateTime>
                  </WebResult>
                  <WebResult>
                     <Title>blogs.msdn.com</Title>
                     <Description>Workaround Steps: Go to Add or Remove Programs ( Shortcut : appwiz.cpl ) Uninstall “ Microsoft SQL Server Compact 3.5 SP1 Beta Management tools ENU</Description>
                     <Url>http://blogs.msdn.com/sqlrem/attachment/7119085.ashx</Url>
                     <DisplayUrl>http://blogs.msdn.com/sqlrem/attachment/7119085.ashx</DisplayUrl>
                     <DateTime>2008-10-28T05:57:03Z</DateTime>
                  </WebResult>
                  <WebResult>
                     <Title>blogs.msdn.com</Title>
                     <Description>Tools for Diagnosing Problems with Messaging Software . By danba . Version 1.0 . Last Revised 6/30/2006 . For testing and debugging code related issues, there are some tools and ... </Description>
                     <Url>http://blogs.msdn.com/webdav_101/attachment/652991.ashx</Url>
                     <DisplayUrl>http://blogs.msdn.com/webdav_101/attachment/652991.ashx</DisplayUrl>
                     <DateTime>2008-10-30T16:03:08Z</DateTime>
                  </WebResult>
                  <WebResult>
                     <Title>Golden Rules for developing TFS client applications</Title>
                     <Description>Check out relevant code samples (Buck has a good set of links @ http://blogs.msdn.com/buckh/archive/2006/08/12/tfs_api_links.aspx) o If no code samples seem relevant but ... </Description>
                     <Url>http://blogs.msdn.com/bharry/attachment/744340.ashx</Url>
                     <DisplayUrl>http://blogs.msdn.com/bharry/attachment/744340.ashx</DisplayUrl>
                     <DateTime>2008-10-28T04:09:40Z</DateTime>
                  </WebResult>
                  <WebResult>
                     <Title>SDLC-in-a-Box version 2.0 Announcement</Title>
                     <Description>VSTS Tools Platform Introduction; SDLC through the eyes of VSTS; Migrating from MSDN or Previous Versions to VSTS; Team Foundation Server Implementation Guidance; Team ... </Description>
                     <Url>http://blogs.msdn.com/publicsector/attachment/876258.ashx</Url>
                     <DisplayUrl>http://blogs.msdn.com/publicsector/attachment/876258.ashx</DisplayUrl>
                     <DateTime>2008-10-23T21:12:05Z</DateTime>
                  </WebResult>
                  <WebResult>
                     <Title>Setup:</Title>
                     <Description>Know Your Blocking . You’ve read Inside Sql Server 2000 cover to cover, but how well do you really know the database locking behavior?</Description>
                     <Url>http://blogs.msdn.com/psheill/attachment/535614.ashx</Url>
                     <DisplayUrl>http://blogs.msdn.com/psheill/attachment/535614.ashx</DisplayUrl>
                     <DateTime>2008-10-28T15:29:42Z</DateTime>
                  </WebResult>
                  <WebResult>
                     <Title>Software Design Invitation Proposal Template for Imagine Cup</Title>
                     <Description>SINGPAPORE SOFTWARE DESIGN INVITATIONAL SUBMISSION PROPOSAL TEMPLATE. NOTE: This is a template, not a fixed format. Please return soft copy only – hardcopies will not be ... </Description>
                     <Url>http://blogs.msdn.com/stanley/attachment/1610112.ashx</Url>
                     <DisplayUrl>http://blogs.msdn.com/stanley/attachment/1610112.ashx</DisplayUrl>
                     <DateTime>2008-10-23T18:13:07Z</DateTime>
                  </WebResult>
               </Results>
            </Web>
         </parameters>
      </SearchResponse>
   </soapenv:Body>
</soapenv:Envelope>

Show:
© 2015 Microsoft