Notification

Urchin WebAnalytics Software is discontinued and is no longer supported. All Urchin documentation applies only to the Urchin product as it was at the time of discontinuation, and does not apply to any Google Analytics products or services.

Samples for .NET (SOAP) v1

Preparing your environment --Beta Release--

API Table of Contents

Samples on Google Code

To set up your environment, install the following packages:

  • Microsoft Visual Studio 2003 or higher
  • .NET Framework 1.1 or higher

We recommend that you use Microsoft Visual Studio 2008. We also recommend that you use .NET Framework 2.0 to ensure that the sample client application compiles correctly.

Generating Client-Side stub classes for Urchin Data API services

To access Urchin Data API services, you need to invoke a remote call on SOAP or HTTP. To do this, the client must have the Web Service endpoint location and a handle to the Web Services interface. These remote interfaces, client side service locators, and stubs are generated by Web Services Description Language Tool (wsdl.exe).

To generate an XML Web Service Proxy Class:

1. Navigate to the "$Microsoft Visual Studio Install Directory$\SDK\v2.0\Bin" directory

2. Run the following command for generating AdminService client-side stub class:

 

wsdl.exe http://server[:port]/services/v1/adminservice?wsdl /language:CS /protocol:SOAP /namespace:SampleCode.com.google.DataAPI.AdminService /out:AdminService.cs

3. Copy the generated AdminService.cs into the project folder and add it to the project.

4. Run the following command for generating ReportService client-side stub class:

 

wsdl.exe http://server[:port]/services/v1/reportservice?wsdl /language:CS /protocol:SOAP /namespace:SampleCode.com.google.DataAPI.ReportService /out:ReportService.cs

5. Copy the generated ReportService.cs into the project folder and add it to the project.

The following stub class sample code files are generated by the WSDL tool for the Urchin Data API services:

  • AdminService.cs – .NET C# stub class for AdminService API.

  • ReportService.cs – .NET C# stub class for ReportService API.

.NET C# Client Examples

 
true
Search
Clear search
Close search
Main menu
11721401660018514881
true
Search Help Center
true
true
true
false
false