Using ASP.NET, I set up a web reference to
http://searchmarketing.yahoo.com/developer/docs/V4/wsdl/V4/LocationService.wsdl
and set the LocationService URL to
https://global.marketing.ews.yahooapis.com/services/V4/LocationService
as found in that wdsl. But I keep getting the error "The request
failed with HTTP status 404: Not Found." Why is this? My Code below:
Partial Class _Default
Inherits System.Web.UI.Page
'Class used to conect to the yahoo api websevices
Public Class YahooAPI
Public locationservice As New
com.yahoo.searchmarketing.LocationServiceService
Public Sub New(ByVal MasterAccountID As String, ByVal Liscense
As String, _
ByVal AccountID As String)
locationservice.masterAccountIDValue = New
com.yahoo.searchmarketing.masterAccountID
locationservice.masterAccountIDValue.Text = New String()
{"xxxx"}
locationservice.SecurityValue = New
com.yahoo.searchmarketing.Security()
locationservice.SecurityValue.UsernameToken = New
com.yahoo.searchmarketing.UsernameToken()
locationservice.SecurityValue.UsernameToken.Username = "xxxx"
locationservice.SecurityValue.UsernameToken.Password = "xxxx"
locationservice.licenseValue = New
com.yahoo.searchmarketing.license
locationservice.licenseValue.Text = New String() {"xxxx"}
locationservice.Url =
"https://global.marketing.ews.yahooapis.com/services/V4/LocationService"
End Sub
End Class
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim serviceY As New YahooAPI("xxxx", "xxxx", "xxxx")
Dim i As String
i = serviceY.locationservice.getMasterAccountLocation().ToString()
End Sub
.