Share via


SOAP Implementation for Image SourceType

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

  • Request Example

  • Response Example

Code Sample

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

Request Example

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="https://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="https://schemas.microsoft.com/LiveSearch/2008/03/Search">
         <parameters>
            <Market>en-us</Market>
            <Query>xbox site:microsoft.com</Query>
            <AppId>Insert your AppId here</AppId>
            <Adult>Moderate</Adult>
            <Sources>
               <SourceType>Image</SourceType>
            </Sources>
            <Image>
               <Offset>0</Offset>
               <Count>10</Count>
            </Image>
         </parameters>
      </SearchRequest>
   </soap:Body>
</soap:Envelope>

Response Example

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="https://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="https://schemas.microsoft.com/LiveSearch/2008/03/Search">
         <parameters>
            <Version>2.0</Version>
            <Query>
               <SearchTerms>xbox site:microsoft.com</SearchTerms>
            </Query>
            <Image>
               <Total>92</Total>
               <Offset>0</Offset>
               <Results>
                  <ImageResult>
                     <Title>Microsoft Deutschland GmbH auf der CeBIT 2006.</Title>
                     <MediaUrl>https://www.microsoft.com/germany/presseservice/images/pressemappen/cebit2006/Xbox-360_5.jpg</MediaUrl>
                     <Url>https://www.microsoft.com/germany/presseservice/service/pressemappen/cebit2006.mspx</Url>
                     <DisplayUrl>https://www.microsoft.com/germany/presseservice/service/pressemappen/cebit2006.mspx</DisplayUrl>
                     <Width>3259</Width>
                     <Height>3264</Height>
                     <Thumbnail>
                        <Url>http://ts2.images.live.com/images/thumbnail.aspx?q=2847678867077&amp;id=b3ba5b922c04d322d937275335c8cf75</Url>
                        <ContentType>image/jpeg</ContentType>
                        <Width>159</Width>
                        <Height>160</Height>
                        <FileSize>2624</FileSize>
                     </Thumbnail>
                  </ImageResult>
                  <ImageResult>
                     <Title>Microsoft Deutschland GmbH auf der CeBIT 2006.</Title>
                     <MediaUrl>https://www.microsoft.com/germany/presseservice/images/pressemappen/cebit2006/Xbox-360_3.jpg</MediaUrl>
                     <Url>https://www.microsoft.com/germany/presseservice/service/pressemappen/cebit2006.mspx</Url>
                     <DisplayUrl>https://www.microsoft.com/germany/presseservice/service/pressemappen/cebit2006.mspx</DisplayUrl>
                     <Width>1181</Width>
                     <Height>1567</Height>
                     <Thumbnail>
                        <Url>http://ts4.images.live.com/images/thumbnail.aspx?q=2770366827291&amp;id=bf7f7d5163531f7f0f01c7de2904d939</Url>
                        <ContentType>image/jpeg</ContentType>
                        <Width>120</Width>
                        <Height>160</Height>
                        <FileSize>2216</FileSize>
                     </Thumbnail>
                  </ImageResult>
                  <ImageResult>
                     <Title>Microsoft Deutschland GmbH auf der CeBIT 2006.</Title>
                     <MediaUrl>https://www.microsoft.com/germany/presseservice/images/pressemappen/cebit2006/Xbox-360_2.jpg</MediaUrl>
                     <Url>https://www.microsoft.com/germany/presseservice/service/pressemappen/cebit2006.mspx</Url>
                     <DisplayUrl>https://www.microsoft.com/germany/presseservice/service/pressemappen/cebit2006.mspx</DisplayUrl>
                     <Width>1772</Width>
                     <Height>1241</Height>
                     <Thumbnail>
                        <Url>http://ts2.images.live.com/images/thumbnail.aspx?q=2847678861537&amp;id=6ebf726022b6cc307bb6f725a3b8ebda</Url>
                        <ContentType>image/jpeg</ContentType>
                        <Width>160</Width>
                        <Height>112</Height>
                        <FileSize>2339</FileSize>
                     </Thumbnail>
                  </ImageResult>
                  <ImageResult>
                     <Title>Microsoft Presseservice Pressemappen</Title>
                     <MediaUrl>https://download.microsoft.com/download/6/2/6/6268195f-e0f9-44c7-be9b-171bb041068f/Xbox_360_Elite_2.jpg</MediaUrl>
                     <Url>https://www.microsoft.com/germany/presseservice/pressemappe_downloads.mspx?id=531984</Url>
                     <DisplayUrl>https://www.microsoft.com/germany/presseservice/pressemappe_downloads.mspx?id=531984</DisplayUrl>
                     <Width>1333</Width>
                     <Height>1772</Height>
                     <Thumbnail>
                        <Url>http://ts4.images.live.com/images/thumbnail.aspx?q=2711566943395&amp;id=1eca328758679ef4b1aa0f7c136cd33a</Url>
                        <ContentType>image/jpeg</ContentType>
                        <Width>120</Width>
                        <Height>160</Height>
                        <FileSize>2694</FileSize>
                     </Thumbnail>
                  </ImageResult>
                  <ImageResult>
                     <Title>Inform Santa: Xbox Has Arrived: Xbox is the must-have gift for video ... </Title>
                     <MediaUrl>https://www.microsoft.com/presspass/images/press/2001/11-15xbox_l.jpg</MediaUrl>
                     <Url>https://www.microsoft.com/presspass/features/2001/nov01/11-13xbox.mspx</Url>
                     <DisplayUrl>https://www.microsoft.com/presspass/features/2001/nov01/11-13xbox.mspx</DisplayUrl>
                     <Width>1379</Width>
                     <Height>2048</Height>
                     <Thumbnail>
                        <Url>http://ts2.images.live.com/images/thumbnail.aspx?q=2791543210725&amp;id=cb1ce4627358630ade946ea6b844df04</Url>
                        <ContentType>image/jpeg</ContentType>
                        <Width>107</Width>
                        <Height>160</Height>
                        <FileSize>4402</FileSize>
                     </Thumbnail>
                  </ImageResult>
                  <ImageResult>
                     <Title>Windows Vista: Connect your Xbox 360 to Windows Media Center</Title>
                     <MediaUrl>https://www.microsoft.com/library/media/1033/windows/images/products/winfamily/mediacenter/connect_02.jpg</MediaUrl>
                     <Url>https://www.microsoft.com/windows/products/winfamily/mediacenter/xbox360.mspx</Url>
                     <DisplayUrl>https://www.microsoft.com/windows/products/winfamily/mediacenter/xbox360.mspx</DisplayUrl>
                     <Width>400</Width>
                     <Height>317</Height>
                     <Thumbnail>
                        <Url>http://ts1.images.live.com/images/thumbnail.aspx?q=2759127860968&amp;id=0c50b801ffb68fb1d73f3cff3f8c793d</Url>
                        <ContentType>image/jpeg</ContentType>
                        <Width>160</Width>
                        <Height>126</Height>
                        <FileSize>3846</FileSize>
                     </Thumbnail>
                  </ImageResult>
                  <ImageResult>
                     <Title>Microsoft Roars Into E3 With Xbox Preview: Responding to an online ... ... </Title>
                     <MediaUrl>https://www.microsoft.com/presspass/images/features/05-10xbox.jpg</MediaUrl>
                     <Url>https://www.microsoft.com/presspass/features/2000/05-10e3xbox.mspx</Url>
                     <DisplayUrl>https://www.microsoft.com/presspass/features/2000/05-10e3xbox.mspx</DisplayUrl>
                     <Width>250</Width>
                     <Height>172</Height>
                     <Thumbnail>
                        <Url>http://ts1.images.live.com/images/thumbnail.aspx?q=2903232677092&amp;id=618e364ae6d3a07859b943851ca61944</Url>
                        <ContentType>image/jpeg</ContentType>
                        <Width>160</Width>
                        <Height>110</Height>
                        <FileSize>4183</FileSize>
                     </Thumbnail>
                  </ImageResult>
                  <ImageResult>
                     <Title>Microsoft Deutschland GmbH auf der CeBIT 2006.</Title>
                     <MediaUrl>https://www.microsoft.com/germany/presseservice/images/pressemappen/cebit2006/Xbox-360_4.jpg</MediaUrl>
                     <Url>https://www.microsoft.com/germany/presseservice/service/pressemappen/cebit2006.mspx</Url>
                     <DisplayUrl>https://www.microsoft.com/germany/presseservice/service/pressemappen/cebit2006.mspx</DisplayUrl>
                     <Width>1772</Width>
                     <Height>1300</Height>
                     <Thumbnail>
                        <Url>http://ts3.images.live.com/images/thumbnail.aspx?q=2662427463490&amp;id=c523c35ec0e285ca575f64cf7602f7f3</Url>
                        <ContentType>image/jpeg</ContentType>
                        <Width>160</Width>
                        <Height>117</Height>
                        <FileSize>2471</FileSize>
                     </Thumbnail>
                  </ImageResult>
                  <ImageResult>
                     <Title>Windows Vista: Se tv og film overalt</Title>
                     <MediaUrl>https://www.microsoft.com/library/media/1030/danmark/windows/images/products/windowsvista/features/experiences/tvandmovies/screenshot_xboxextender.jpg</MediaUrl>
                     <Url>https://www.microsoft.com/danmark/windows/products/windowsvista/features/experiences/tvandmovies/anywhere.mspx</Url>
                     <DisplayUrl>https://www.microsoft.com/danmark/windows/products/windowsvista/features/experiences/tvandmovies/anywhere.mspx</DisplayUrl>
                     <Width>400</Width>
                     <Height>351</Height>
                     <Thumbnail>
                        <Url>http://ts4.images.live.com/images/thumbnail.aspx?q=2903232679435&amp;id=b140808f5cde3e9e5c583f3ded85431c</Url>
                        <ContentType>image/jpeg</ContentType>
                        <Width>160</Width>
                        <Height>140</Height>
                        <FileSize>3743</FileSize>
                     </Thumbnail>
                  </ImageResult>
                  <ImageResult>
                     <Title>Windows Vista: Connect your Xbox 360 to Windows Media Center</Title>
                     <MediaUrl>https://www.microsoft.com/library/media/1033/windows/images/products/winfamily/mediacenter/connect_06.jpg</MediaUrl>
                     <Url>https://www.microsoft.com/windows/products/winfamily/mediacenter/xbox360.mspx</Url>
                     <DisplayUrl>https://www.microsoft.com/windows/products/winfamily/mediacenter/xbox360.mspx</DisplayUrl>
                     <Width>400</Width>
                     <Height>322</Height>
                     <Thumbnail>
                        <Url>http://ts4.images.live.com/images/thumbnail.aspx?q=2835510397451&amp;id=3f3927b55a67d6bb26979e97a6d3c028</Url>
                        <ContentType>image/jpeg</ContentType>
                        <Width>160</Width>
                        <Height>128</Height>
                        <FileSize>3571</FileSize>
                     </Thumbnail>
                  </ImageResult>
               </Results>
            </Image>
         </parameters>
      </SearchResponse>
   </soapenv:Body>
</soapenv:Envelope>