List Info

Thread: LocationService Problems




LocationService Problems
country flaguser name
United States
2008-03-06 13:38:58

We are trying to upgrade to V3 and I cannot access the location
service. My code builds, but when I try to instantiate the location
service I get the error "Invalid URI: The format of the URI could not
be determined." I am referencing the wsl
http://searchmarketing.yahoo.com/developer/docs/V3/wsdl-
sandbox/V3/LocationService.wsdl. According to the sample code
YahooEWSClient.cs this should work. Debugging further I found there is
a dynamically generated file called Reference.cs contains the
constructor and the url is infact invalid.

Reference.cs Constructor:
/// <remarks/>
public LocationServiceService() {
this.Url
= "hostport_LocationService/services/V3/LocationService&quot;;
}

Code:
LocationServiceService _locationService = new LocationServiceService();

__._,_.___
.

__,_._,___
Re: LocationService Problems
country flaguser name
United States
2008-03-06 15:33:10

I figured out my own problem. I realized that location service won't
work for sandbox enviornment, you must hardcode location service url
in sandbox.

--- In yws-searchmarketing%40yahoogroups.com">yws-searchmarketingyahoogroups.com, "spike121232002&quot;
<yahoo...> wrote:
&gt;
> We are trying to upgrade to V3 and I cannot access the location
> service. My code builds, but when I try to instantiate the
location
> service I get the error "Invalid URI: The format of the URI could
not
> be determined." I am referencing the wsl
> http://searchmarketing.yahoo.com/developer/docs/V3/wsdl-
&gt; sandbox/V3/LocationService.wsdl. According to the sample code
> YahooEWSClient.cs this should work. Debugging further I found
there is
> a dynamically generated file called Reference.cs contains the
> constructor and the url is infact invalid.
>
> Reference.cs Constructor:
> /// <remarks/>
&gt; public LocationServiceService() {
> this.Url
> = "hostport_LocationService/services/V3/LocationService&quot;;
&gt; }
>
>
> Code:
&gt; LocationServiceService _locationService = new
LocationServiceService();
>

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )