1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
|
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
//
// Ce code source a été automatiquement généré par wsdl, Version=2.0.50727.42.
//
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name = "bourseSoapBinding", Namespace = "http://localhost:8080/HibernateWS/services/bourse")]
public partial class BourseService : System.Web.Services.Protocols.SoapHttpClientProtocol
{
private System.Threading.SendOrPostCallback getAllCotationsOperationCompleted;
private System.Threading.SendOrPostCallback getCotationOperationCompleted;
private System.Threading.SendOrPostCallback getCotationFromSocOperationCompleted;
/// <remarks/>
public BourseService()
{
this.Url = "http://localhost:8080/HibernateWS/services/bourse";
}
/// <remarks/>
public event getAllCotationsCompletedEventHandler getAllCotationsCompleted;
/// <remarks/>
public event getCotationCompletedEventHandler getCotationCompleted;
/// <remarks/>
public event getCotationFromSocCompletedEventHandler getCotationFromSocCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "http://bourse.med", ResponseNamespace = "http://bourse.med", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("getAllCotationsReturn")]
[return: System.Xml.Serialization.XmlArrayItemAttribute("item", Namespace = "http://localhost:8080/HibernateWS/services/bourse", IsNullable = false)]
public object[] getAllCotations()
{
object[] results = this.Invoke("getAllCotations", new object[0]);
return ((object[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BegingetAllCotations(System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("getAllCotations", new object[0], callback, asyncState);
}
/// <remarks/>
public object[] EndgetAllCotations(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((object[])(results[0]));
}
/// <remarks/>
public void getAllCotationsAsync()
{
this.getAllCotationsAsync(null);
}
/// <remarks/>
public void getAllCotationsAsync(object userState)
{
if ((this.getAllCotationsOperationCompleted == null))
{
this.getAllCotationsOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetAllCotationsOperationCompleted);
}
this.InvokeAsync("getAllCotations", new object[0], this.getAllCotationsOperationCompleted, userState);
}
private void OngetAllCotationsOperationCompleted(object arg)
{
if ((this.getAllCotationsCompleted != null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.getAllCotationsCompleted(this, new getAllCotationsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "urn:med.bourse", ResponseNamespace = "urn:med.bourse", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
//[return: System.Xml.Serialization.XmlElementAttribute("getCotationReturn")]
[return: System.Xml.Serialization.XmlElement(ElementName = "getCotationReturn", Namespace = "urn:medBourse.Cotation")]
public Cotation getCotation(long NumCotation)
{
System.Windows.Forms.MessageBox.Show(Convert.ToString(NumCotation));
object[] results = this.Invoke("getCotation", new object[] {NumCotation});
System.Windows.Forms.MessageBox.Show(Convert.ToString((Cotation)results[0]));
return ((Cotation)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BegingetCotation(long NumCotation, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("getCotation", new object[] {
NumCotation}, callback, asyncState);
}
/// <remarks/>
public Cotation EndgetCotation(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((Cotation)(results[0]));
}
/// <remarks/>
public void getCotationAsync(long NumCotation)
{
this.getCotationAsync(NumCotation, null);
}
/// <remarks/>
public void getCotationAsync(long NumCotation, object userState)
{
if ((this.getCotationOperationCompleted == null))
{
this.getCotationOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetCotationOperationCompleted);
}
this.InvokeAsync("getCotation", new object[] {
NumCotation}, this.getCotationOperationCompleted, userState);
}
private void OngetCotationOperationCompleted(object arg)
{
if ((this.getCotationCompleted != null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.getCotationCompleted(this, new getCotationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "http://bourse.med", ResponseNamespace = "http://bourse.med", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayAttribute("getCotationFromSocReturn")]
[return: System.Xml.Serialization.XmlArrayItemAttribute("item", Namespace = "http://localhost:8080/HibernateWS/services/bourse", IsNullable = false)]
public object[] getCotationFromSoc(string CodeSoc)
{
object[] results = this.Invoke("getCotationFromSoc", new object[] {
CodeSoc});
return ((object[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BegingetCotationFromSoc(string CodeSoc, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("getCotationFromSoc", new object[] {
CodeSoc}, callback, asyncState);
}
/// <remarks/>
public object[] EndgetCotationFromSoc(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((object[])(results[0]));
}
/// <remarks/>
public void getCotationFromSocAsync(string CodeSoc)
{
this.getCotationFromSocAsync(CodeSoc, null);
}
/// <remarks/>
public void getCotationFromSocAsync(string CodeSoc, object userState)
{
if ((this.getCotationFromSocOperationCompleted == null))
{
this.getCotationFromSocOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetCotationFromSocOperationCompleted);
}
this.InvokeAsync("getCotationFromSoc", new object[] {
CodeSoc}, this.getCotationFromSocOperationCompleted, userState);
}
private void OngetCotationFromSocOperationCompleted(object arg)
{
if ((this.getCotationFromSocCompleted != null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.getCotationFromSocCompleted(this, new getCotationFromSocCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState)
{
base.CancelAsync(userState);
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:medBourse")]
public partial class Cotation
{
private string codeSocieteField;
private System.Nullable<System.DateTime> dateCotationField;
private System.Nullable<long> numCotationField;
private double valActionField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]
public string codeSociete
{
get
{
return this.codeSocieteField;
}
set
{
this.codeSocieteField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]
public System.Nullable<System.DateTime> dateCotation
{
get
{
return this.dateCotationField;
}
set
{
this.dateCotationField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]
public System.Nullable<long> numCotation
{
get
{
return this.numCotationField;
}
set
{
this.numCotationField = value;
}
}
/// <remarks/>
public double valAction
{
get
{
return this.valActionField;
}
set
{
this.valActionField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void getAllCotationsCompletedEventHandler(object sender, getAllCotationsCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class getAllCotationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{
private object[] results;
internal getAllCotationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
:
base(exception, cancelled, userState)
{
this.results = results;
}
/// <remarks/>
public object[] Result
{
get
{
this.RaiseExceptionIfNecessary();
return ((object[])(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void getCotationCompletedEventHandler(object sender, getCotationCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class getCotationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{
private object[] results;
internal getCotationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
:
base(exception, cancelled, userState)
{
this.results = results;
}
/// <remarks/>
public Cotation Result
{
get
{
this.RaiseExceptionIfNecessary();
return ((Cotation)(this.results[0]));
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void getCotationFromSocCompletedEventHandler(object sender, getCotationFromSocCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class getCotationFromSocCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{
private object[] results;
internal getCotationFromSocCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState)
:
base(exception, cancelled, userState)
{
this.results = results;
}
/// <remarks/>
public object[] Result
{
get
{
this.RaiseExceptionIfNecessary();
return ((object[])(this.results[0]));
}
}
} |
Partager