| 1 |
//------------------------------------------------------------------------------ |
| 2 |
// <autogenerated> |
| 3 |
// This code was generated by a tool. |
| 4 |
// Runtime Version: 1.1.4322.573 |
| 5 |
// |
| 6 |
// Changes to this file may cause incorrect behavior and will be lost if |
| 7 |
// the code is regenerated. |
| 8 |
// </autogenerated> |
| 9 |
//------------------------------------------------------------------------------ |
| 10 |
|
| 11 |
// |
| 12 |
// This source code was auto-generated by wsdl, Version=1.1.4322.573. |
| 13 |
// |
| 14 |
using System.Diagnostics; |
| 15 |
using System.Xml.Serialization; |
| 16 |
using System; |
| 17 |
using System.Web.Services.Protocols; |
| 18 |
using System.ComponentModel; |
| 19 |
using System.Web.Services; |
| 20 |
|
| 21 |
|
| 22 |
/// <remarks/> |
| 23 |
[System.Diagnostics.DebuggerStepThroughAttribute()] |
| 24 |
[System.ComponentModel.DesignerCategoryAttribute("code")] |
| 25 |
[System.Web.Services.WebServiceBindingAttribute(Name="MathSoapBinding", Namespace="http://math.samples/")] |
| 26 |
public class MathService : System.Web.Services.Protocols.SoapHttpClientProtocol { |
| 27 |
|
| 28 |
/// <remarks/> |
| 29 |
public MathService() { |
| 30 |
this.Url = "http://localhost:8080/axis/services/Math"; |
| 31 |
} |
| 32 |
|
| 33 |
/// <remarks/> |
| 34 |
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestElementName="Add", RequestNamespace="http://math.samples/", ResponseElementName="AddResponse", ResponseNamespace="http://math.samples/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] |
| 35 |
[return: System.Xml.Serialization.XmlElementAttribute("AddResult")] |
| 36 |
public System.Single add(System.Single A, System.Single B) { |
| 37 |
object[] results = this.Invoke("add", new object[] { |
| 38 |
A, |
| 39 |
B}); |
| 40 |
return ((System.Single)(results[0])); |
| 41 |
} |
| 42 |
|
| 43 |
/// <remarks/> |
| 44 |
public System.IAsyncResult Beginadd(System.Single A, System.Single B, System.AsyncCallback callback, object asyncState) { |
| 45 |
return this.BeginInvoke("add", new object[] { |
| 46 |
A, |
| 47 |
B}, callback, asyncState); |
| 48 |
} |
| 49 |
|
| 50 |
/// <remarks/> |
| 51 |
public System.Single Endadd(System.IAsyncResult asyncResult) { |
| 52 |
object[] results = this.EndInvoke(asyncResult); |
| 53 |
return ((System.Single)(results[0])); |
| 54 |
} |
| 55 |
|
| 56 |
public static void Main(String[] args) { |
| 57 |
MathService m = new MathService(); |
| 58 |
Console.WriteLine(m.add(4,5)); |
| 59 |
} |
| 60 |
} |