index > Windows Live Search: Development > SoapException on MSN search

SoapException on MSN search

The sample program which is included in "MSN Search Web Service SDK Version 0.60 (Beta).msi" does not work anymore.

If you have same problems or some good solutions, please give me information.

I sent e-mail to mailto:msrchdocf@microsoft.com. (this is include in the document of SDK). But, the e-mail address is invalid and I got
an error mail.

The sample program displays the following alert:

System.Web.Services.Protocols.SoapException: Client Error
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message,
WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoce(String methodName, Object[] parameters)
at WindowsSearchFormVB.MSNSearch.MSNSearchService.Search(SearchRequest Request)

I checked more detail with a simple PHP script.

<?php

$client = new SoapClient("http://soap.search.msn.com/webservices.asmx?wsdl");

var_dump($client->__getFunctions());

var_dump($client->__getTypes());


?>

The function seems to be same as before.

But, the types are not what they used to be.

The types are not consistent with the document.

http://msdn.microsoft.com/library/en-us/MSN_Search_Web_Service_SDK/HTML/IntroducingTheMSNSearchWebService.asp

[TWO DAYS AGO]

array(1) {
[0]=>
string(41) "SearchResponse Search(Search $parameters)"
}
array(19) {
[0]=>
string(17) "string SourceType"
[1]=>
string(23) "anyType ResultFieldMask"
[2]=>
string(16) "string anonymous"
[3]=>
string(24) "string SafeSearchOptions"
[4]=>
string(62) "struct SearchConstants {
string MarkBegin;
string MarkEnd;
}"
[5]=>
string(100) "struct SourceRequest {
SourceType Source;
int Offset;
int Count;
ResultFieldMask ResultFields;
}"
Devil=>
string(72) "struct Location {
double Latitude;
double Longitude;
double Radius;
}"
[7]=>
string(173) "struct Address {
string AddressLine;
string PrimaryCity;
string SecondaryCity;
string Subdivision;
string PostalCode;
string CountryRegion;
string FormattedAddress;
}"
Music=>
string(19) "anyType SearchFlags"
[9]=>
string(16) "string anonymous"
[10]=>
string(186) "struct SearchRequest {
string AppID;
string Query;
string CultureInfo;
SafeSearchOptions SafeSearch;
SearchFlags Flags;
Location Location;
ArrayOfSourceRequestRequests Requests;
}"
[11]=>
string(69) "struct ArrayOfSourceRequestRequests {
SourceRequest SourceRequest;
}"
[12]=>
string(177) "struct Result {
string Title;
string Description;
string Url;
string DisplayUrl;
string CacheUrl;
string SearchTags;
string Phone;
Address Address;
Location Location;
}"
[13]=>
string(101) "struct SourceResponse {
SourceType Source;
int Offset;
int Total;
ArrayOfResultResults Results;
}"
[14]=>
string(47) "struct ArrayOfResultResults {
Result Result;
}"
[15]=>
string(68) "struct SearchResponse {
ArrayOfSourceResponseResponses Responses;
}"
[16]=>
string(73) "struct ArrayOfSourceResponseResponses {
SourceResponse SourceResponse;
}"
[17]=>
string(41) "struct Search {
SearchRequest Request;
}"
[18]=>
string(51) "struct SearchResponse {
SearchResponse Response;
}"
}

---------------------------------------------------------------------------

[NOW]

array(1) {
[0]=>
string(41) "SearchResponse Search(Search $parameters)"
}
array(22) {
[0]=>
string(17) "string SourceType"
[1]=>
string(23) "anyType ResultFieldMask"
[2]=>
string(16) "string anonymous"
[3]=>
string(24) "string SafeSearchOptions"
[4]=>
string(19) "anyType SearchFlags"
[5]=>
string(16) "string anonymous"
Devil=>
string(62) "struct SearchConstants {
string MarkBegin;
string MarkEnd;
}"
[7]=>
string(72) "struct Location {
double Latitude;
double Longitude;
double Radius;
}"
Music=>
string(173) "struct Address {
string AddressLine;
string PrimaryCity;
string SecondaryCity;
string Subdivision;
string PostalCode;
string CountryRegion;
string FormattedAddress;
}"
[9]=>
string(89) "struct DateTime {
int Year;
int Month;
int Day;
int Hour;
int Minute;
int Second;
}"
[10]=>
string(49) "struct SearchTag {
string Name;
string Value;
}"
[11]=>
string(100) "struct SourceRequest {
SourceType Source;
int Offset;
int Count;
ResultFieldMask ResultFields;
}"
[12]=>
string(263) "struct Result {
string Title;
string Description;
string Url;
string DisplayUrl;
string CacheUrl;
string Source;
string SearchTags;
string Phone;
DateTime DateTime;
Address Address;
Location Location;
ArrayOfSearchTagSearchTagsArray SearchTagsArray;
}"
[13]=>
string(64) "struct ArrayOfSearchTagSearchTagsArray {
SearchTag SearchTag;
}"
[14]=>
string(101) "struct SourceResponse {
SourceType Source;
int Offset;
int Total;
ArrayOfResultResults Results;
}"
[15]=>
string(47) "struct ArrayOfResultResults {
Result Result;
}"
[16]=>
string(186) "struct SearchRequest {
string AppID;
string Query;
string CultureInfo;
SafeSearchOptions SafeSearch;
SearchFlags Flags;
Location Location;
ArrayOfSourceRequestRequests Requests;
}"
[17]=>
string(69) "struct ArrayOfSourceRequestRequests {
SourceRequest SourceRequest;
}"
[18]=>
string(68) "struct SearchResponse {
ArrayOfSourceResponseResponses Responses;
}"
[19]=>
string(73) "struct ArrayOfSourceResponseResponses {
SourceResponse SourceResponse;
}"
[20]=>
string(41) "struct Search {
SearchRequest Request;
}"
[21]=>
string(51) "struct SearchResponse {
SearchResponse Response;
}"
}

nanakamado

The problem was resolved after I replaced AppID to new one.

"Get a new AppID"
http://search.msn.com/developer/appids.aspx

nanakamado
reply 2

You can use google to search for other answers

 

More Articles

• message
• Better SDK please
• proxy authentication required error
• Client Error
• Alternate Sources (specifically spelling)
• Image search?
• Msn Web services ?
• adCenter - Java Example with axis?
• Offset and Count attributes of a SourceRequest
• MSN Search API implemented in ASP only
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Daily limits with application ID and IP
• Use msn api search with php
• Use asynchronous Search API
• spanish spelling correction
• message
• optional parameters for xml
• "Client Error"
• Parsing SearchTags
• Consuming MSN Search Web Service from PHP
• problems Signing Into Windows Live Messe
• Commercial usage
• org.apache.axis.ConfigurationException:
• Visual Studio Only?
• Developer Provisioning System not found
• How can I turn on Child Search with MSN

Hot Articles

• problems Signing Into Windows Live Messe
• Getting more than 250 results
• MSN Search Results For A Meta Search Eng
• Why am I getting javascript error
• Results Not All There
• Commerical Applications
• Use asynchronous Search API
• Daily limits with application ID and IP
• Getting more than 250 results
• Python Interfacing with API
• Yahoo API
• How can i get Account and TOKEN for WEB
• Offset and Count attributes of a SourceR
• No results with inurl: parameter
• Soap Exception Reference.cs Line 38

Recommend Articles

• Python Interfacing with API
• Bounce on feedback email
• Offset and Count attributes of a SourceR
• MSDN Article
• read am WSDL
• Not able to match the results
• how can i turn off website grouping in t
• Keywords
• Soap Exception Reference.cs Line 38
• Image search?
• Live search service not responding
• Accessing MSN Search Web Service from Perl
• Consuming MSN Search Web Service from PHP
• Writing a Client in Java
• Setting multiple cultureinfo