Cisco Cisco 3365 Mobility Services Engine 開発者ガイド
C
ISCO
MSE
API
S
PECI FICATI ON
G
UI DE
–
C
ONTEXT
A
W ARE
S
ERVICE OF
MSE,
R
ELEASE
7.4
.
P
A G E
223
O F
227
/edb – Enable data binding
/out - Output location. Csharp file will be generated in this location
/protocol: Protocol to be used SOAP/ SOAP12/HttpGet/HttpPost.
If using Microsoft Visual Studio 2003 then type
wsdl /out:c:\csharp /protocol:SOAP c:/location/wsdl/mse-location.wsdl
c:/location/wsdl/mse-location.xsd
c:/location/wsdl/mse-location.xsd
Modification in the generated file:
Please add the namespace to the generated cs file from wsdl.
For example: aaaService.cs will be generated from mse-aaa.wsdl and add the namespace
declaration as
declaration as
namespace aaa{
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="AaaBinding",
Namespace="http://cisco.com/mse")]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(AesObject))]
public partial class aaaService : System.Web.Services.Protocols.SoapHttpClientProtocol
{….
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="AaaBinding",
Namespace="http://cisco.com/mse")]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(AesObject))]
public partial class aaaService : System.Web.Services.Protocols.SoapHttpClientProtocol
{….
}
Similarly LocationService.cs will be generated from mse-location.wsdl and add the namespace
declaration as
declaration as
namespace location
{
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
…. [System.Xml.Serialization.XmlIncludeAttribute(typeof(AesTrackDefn[]))]
public partial class LocationService :
System.Web.Services.Protocols.SoapHttpClientProtocol {
….}
{
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
…. [System.Xml.Serialization.XmlIncludeAttribute(typeof(AesTrackDefn[]))]
public partial class LocationService :
System.Web.Services.Protocols.SoapHttpClientProtocol {
….}
13.5.1
For Https Support
For suppressing the ssl certificate please do the following;
Add the following in the generated csharp file, for Eg in LocationService.cs file
using System.Net;
protected override WebRequest GetWebRequest(Uri uri)