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 tomailto: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;
}"
}

[7640 byte] By [nanakamado] at [2008-3-7]
# 1

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

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

nanakamado at 2007-9-9 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Search: Development...

Windows Live Developer Forums

Site Classified