Loading ...
Sorry, an error occurred while loading the content.

Re: [yws-searchmarketing] unable to get endPointLocation (ASP.NET)

Expand Messages
  • Jeff Lavallee
    The Location Service URL you re using isn t reachable - try using https://sandbox.marketing.ews.yahooapis.com/services/V3/LocationService
    Message 1 of 3 , Feb 1, 2008
    • 0 Attachment
      The Location Service URL you're using isn't reachable - try using

      https://sandbox.marketing.ews.yahooapis.com/services/V3/LocationService

      k.elmquist wrote:
      >
      >
      > I am simply trying to get my endPointLocation and display it on my
      > webpage, but I am failing with the error "Unable to connect to the
      > remote server". Does anyone see anything obviously wrong with my
      > code-behind code?
      >
      > public partial class rpt1testSandbox : System.Web.UI.Page
      > {
      > protected void Page_Load(object sender, EventArgs e)
      > {
      > LocationServiceService _locationService = new
      > LocationServiceService();
      >
      > //credentials
      > masterAccountID myMasterAccountID = new masterAccountID();
      > myMasterAccountID.Text = new String[] { "0000000" };
      > Security securityValue = new Security();
      > securityValue.UsernameToken = new UsernameToken();
      > securityValue.UsernameToken.Username = "xxxxxx";
      > securityValue.UsernameToken.Password = "xxxxxxxx";
      > license myLicense = new license();
      > myLicense.Text = new String[] { "0000000000000000" };
      >
      > //get endPointLocation
      > string endPointLocation = null;
      > try
      > {
      > _locationService.Url =
      > "http://intews1.ysm.vip.oc2.yahoo.com:8080/services/v3/locationservi
      > <http://intews1.ysm.vip.oc2.yahoo.com:8080/services/v3/locationservi>
      > ce";
      > _locationService.masterAccountIDValue = myMasterAccountID;
      > _locationService.SecurityValue = securityValue;
      > _locationService.licenseValue = myLicense;
      > endPointLocation =
      > _locationService.getMasterAccountLocation();
      > }
      > catch (Exception ex)
      > {
      > Label1.Text = ex.Message;
      > }
      >
      > Label2.Text = endPointLocation;
      > }
      > }
      >
    • k.elmquist
      It works! Thank you so much! ... https://sandbox.marketing.ews.yahooapis.com/services/V3/LocationServic e ...
      Message 2 of 3 , Feb 1, 2008
      • 0 Attachment
        It works! Thank you so much!

        --- In yws-searchmarketing@yahoogroups.com, Jeff Lavallee <jeff@...>
        wrote:
        >
        >
        > The Location Service URL you're using isn't reachable - try using
        >
        >
        https://sandbox.marketing.ews.yahooapis.com/services/V3/LocationServic
        e
        >
        > k.elmquist wrote:
        > >
        > >
        > > I am simply trying to get my endPointLocation and display it on my
        > > webpage, but I am failing with the error "Unable to connect to the
        > > remote server". Does anyone see anything obviously wrong with my
        > > code-behind code?
        > >
        > > public partial class rpt1testSandbox : System.Web.UI.Page
        > > {
        > > protected void Page_Load(object sender, EventArgs e)
        > > {
        > > LocationServiceService _locationService = new
        > > LocationServiceService();
        > >
        > > //credentials
        > > masterAccountID myMasterAccountID = new masterAccountID();
        > > myMasterAccountID.Text = new String[] { "0000000" };
        > > Security securityValue = new Security();
        > > securityValue.UsernameToken = new UsernameToken();
        > > securityValue.UsernameToken.Username = "xxxxxx";
        > > securityValue.UsernameToken.Password = "xxxxxxxx";
        > > license myLicense = new license();
        > > myLicense.Text = new String[] { "0000000000000000" };
        > >
        > > //get endPointLocation
        > > string endPointLocation = null;
        > > try
        > > {
        > > _locationService.Url =
        >
        > "http://intews1.ysm.vip.oc2.yahoo.com:8080/services/v3/locationservi

        > >
        <http://intews1.ysm.vip.oc2.yahoo.com:8080/services/v3/locationservi>
        > > ce";
        > > _locationService.masterAccountIDValue = myMasterAccountID;
        > > _locationService.SecurityValue = securityValue;
        > > _locationService.licenseValue = myLicense;
        > > endPointLocation =
        > > _locationService.getMasterAccountLocation();
        > > }
        > > catch (Exception ex)
        > > {
        > > Label1.Text = ex.Message;
        > > }
        > >
        > > Label2.Text = endPointLocation;
        > > }
        > > }
        > >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.