Bugzilla – Attachment 170676 Details for
Bug 322400
[System.Web.Services] SOAP-Problems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
c#-ws-proxy for http://www.atomic-x.com/xmlservices/GuitarManufWS.asmx?wsdl
Guitars.cs (text/plain), 20.12 KB, created by
Thomas Wiest
on 2006-10-20 21:53:00 UTC
(
hide
)
Description:
c#-ws-proxy for http://www.atomic-x.com/xmlservices/GuitarManufWS.asmx?wsdl
Filename:
MIME Type:
Creator:
Thomas Wiest
Created:
2006-10-20 21:53:00 UTC
Size:
20.12 KB
patch
obsolete
>// ------------------------------------------------------------------------------ >// <autogenerated> >// This code was generated by a tool. >// Mono Runtime Version: 2.0.50727.42 >// >// Changes to this file may cause incorrect behavior and will be lost if >// the code is regenerated. >// </autogenerated> >// ------------------------------------------------------------------------------ > >// >// This source code was auto-generated by Web Services Description Language Utility >//Mono Framework v2.0.50727.42 >// > > >/// <remarks/> >/// <remarks> >///An extensive list of guitar manufacturers and their web sites. >///</remarks> >[System.Web.Services.WebServiceBinding(Name="GuitarsSoap", Namespace="http://www.atomic-x.com/xmlservices/GuitarManufWS")] >[System.Diagnostics.DebuggerStepThroughAttribute()] >[System.ComponentModel.DesignerCategoryAttribute("code")] >public class Guitars : System.Web.Services.Protocols.SoapHttpClientProtocol { > > private System.Threading.SendOrPostCallback GetAllGuitarManufacturersOperationCompleted; > > private System.Threading.SendOrPostCallback SearchCompanyOperationCompleted; > > private System.Threading.SendOrPostCallback SearchLinkOperationCompleted; > > public Guitars() { > this.Url = "http://www.atomic-x.com/xmlservices/GuitarManufWS.asmx"; > } > > private event GetAllGuitarManufacturersCompletedEventHandler GetAllGuitarManufacturersCompleted; > > private event SearchCompanyCompletedEventHandler SearchCompanyCompleted; > > private event SearchLinkCompletedEventHandler SearchLinkCompleted; > > /// <remarks> >///Returns all manufacturers names and links. >///</remarks> > [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.atomic-x.com/xmlservices/GuitarManufWS/GetAllGuitarManufacturers", RequestNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ResponseNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] > public ManufacturerData GetAllGuitarManufacturers() { > object[] results = this.Invoke("GetAllGuitarManufacturers", new object[0]); > return ((ManufacturerData)(results[0])); > } > > public System.IAsyncResult BeginGetAllGuitarManufacturers(System.AsyncCallback callback, object asyncState) { > return this.BeginInvoke("GetAllGuitarManufacturers", new object[0], callback, asyncState); > } > > public ManufacturerData EndGetAllGuitarManufacturers(System.IAsyncResult asyncResult) { > object[] results = this.EndInvoke(asyncResult); > return ((ManufacturerData)(results[0])); > } > > public void GetAllGuitarManufacturersAsync() { > this.GetAllGuitarManufacturersAsync(null); > } > > public void GetAllGuitarManufacturersAsync(object userState) { > if ((this.GetAllGuitarManufacturersOperationCompleted == null)) { > this.GetAllGuitarManufacturersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllGuitarManufacturersCompleted); > } > this.InvokeAsync("GetAllGuitarManufacturers", new object[0], this.GetAllGuitarManufacturersOperationCompleted, userState); > } > > private void OnGetAllGuitarManufacturersCompleted(object arg) { > if ((this.GetAllGuitarManufacturersCompleted != null)) { > System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); > this.GetAllGuitarManufacturersCompleted(this, new GetAllGuitarManufacturersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); > } > } > > /// <remarks> >///Searches company names. >///</remarks> > [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.atomic-x.com/xmlservices/GuitarManufWS/SearchCompany", RequestNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ResponseNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] > public ManufacturerData SearchCompany(string company) { > object[] results = this.Invoke("SearchCompany", new object[] { > company}); > return ((ManufacturerData)(results[0])); > } > > public System.IAsyncResult BeginSearchCompany(string company, System.AsyncCallback callback, object asyncState) { > return this.BeginInvoke("SearchCompany", new object[] { > company}, callback, asyncState); > } > > public ManufacturerData EndSearchCompany(System.IAsyncResult asyncResult) { > object[] results = this.EndInvoke(asyncResult); > return ((ManufacturerData)(results[0])); > } > > public void SearchCompanyAsync(string company) { > this.SearchCompanyAsync(company, null); > } > > public void SearchCompanyAsync(string company, object userState) { > if ((this.SearchCompanyOperationCompleted == null)) { > this.SearchCompanyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchCompanyCompleted); > } > this.InvokeAsync("SearchCompany", new object[] { > company}, this.SearchCompanyOperationCompleted, userState); > } > > private void OnSearchCompanyCompleted(object arg) { > if ((this.SearchCompanyCompleted != null)) { > System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); > this.SearchCompanyCompleted(this, new SearchCompanyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); > } > } > > /// <remarks> >///Searches link data. >///</remarks> > [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.atomic-x.com/xmlservices/GuitarManufWS/SearchLink", RequestNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ResponseNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] > public ManufacturerData SearchLink(string link) { > object[] results = this.Invoke("SearchLink", new object[] { > link}); > return ((ManufacturerData)(results[0])); > } > > public System.IAsyncResult BeginSearchLink(string link, System.AsyncCallback callback, object asyncState) { > return this.BeginInvoke("SearchLink", new object[] { > link}, callback, asyncState); > } > > public ManufacturerData EndSearchLink(System.IAsyncResult asyncResult) { > object[] results = this.EndInvoke(asyncResult); > return ((ManufacturerData)(results[0])); > } > > public void SearchLinkAsync(string link) { > this.SearchLinkAsync(link, null); > } > > public void SearchLinkAsync(string link, object userState) { > if ((this.SearchLinkOperationCompleted == null)) { > this.SearchLinkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchLinkCompleted); > } > this.InvokeAsync("SearchLink", new object[] { > link}, this.SearchLinkOperationCompleted, userState); > } > > private void OnSearchLinkCompleted(object arg) { > if ((this.SearchLinkCompleted != null)) { > System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); > this.SearchLinkCompleted(this, new SearchLinkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); > } > } > public static void Main() { > Guitars gitarren=new Guitars(); > ManufacturerData data=gitarren.GetAllGuitarManufacturers(); > string[] companies=data.Company; > data=gitarren.SearchCompany(companies[0]); > System.Console.WriteLine("{0}:{1}",data.Company[0],data.Link[0]); > } >} > >/// <remarks/> >[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.42")] >[System.SerializableAttribute()] >[System.Diagnostics.DebuggerStepThroughAttribute()] >[System.ComponentModel.DesignerCategoryAttribute("code")] >[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.atomic-x.com/xmlservices/GuitarManufWS")] >public partial class ManufacturerData { > > private string[] companyField; > > private string[] linkField; > > /// <remarks/> > public string[] Company { > get { > return this.companyField; > } > set { > this.companyField = value; > } > } > > /// <remarks/> > public string[] Link { > get { > return this.linkField; > } > set { > this.linkField = value; > } > } >} > >public class GetAllGuitarManufacturersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { > > private object[] results; > > internal GetAllGuitarManufacturersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : > base(exception, cancelled, userState) { > this.results = results; > } > > public ManufacturerData Result { > get { > this.RaiseExceptionIfNecessary(); > return ((ManufacturerData)(this.results[0])); > } > } >} > >public delegate void GetAllGuitarManufacturersCompletedEventHandler(object sender, GetAllGuitarManufacturersCompletedEventArgs args); > >public class SearchCompanyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { > > private object[] results; > > internal SearchCompanyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : > base(exception, cancelled, userState) { > this.results = results; > } > > public ManufacturerData Result { > get { > this.RaiseExceptionIfNecessary(); > return ((ManufacturerData)(this.results[0])); > } > } >} > >public delegate void SearchCompanyCompletedEventHandler(object sender, SearchCompanyCompletedEventArgs args); > >public class SearchLinkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { > > private object[] results; > > internal SearchLinkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : > base(exception, cancelled, userState) { > this.results = results; > } > > public ManufacturerData Result { > get { > this.RaiseExceptionIfNecessary(); > return ((ManufacturerData)(this.results[0])); > } > } >} > >public delegate void SearchLinkCompletedEventHandler(object sender, SearchLinkCompletedEventArgs args); > >/*/// <remarks/> >/// <remarks> >///An extensive list of guitar manufacturers and their web sites. >///</remarks> >[System.Web.Services.WebServiceBinding(Name="GuitarsSoap", Namespace="http://www.atomic-x.com/xmlservices/GuitarManufWS")] >[System.Diagnostics.DebuggerStepThroughAttribute()] >[System.ComponentModel.DesignerCategoryAttribute("code")] >public class Guitars1 : System.Web.Services.Protocols.SoapHttpClientProtocol { > > private System.Threading.SendOrPostCallback GetAllGuitarManufacturersOperationCompleted; > > private System.Threading.SendOrPostCallback SearchCompanyOperationCompleted; > > private System.Threading.SendOrPostCallback SearchLinkOperationCompleted; > > public Guitars1() { > this.Url = "http://www.atomic-x.com/xmlservices/GuitarManufWS.asmx"; > } > > private event GetAllGuitarManufacturersCompletedEventHandler GetAllGuitarManufacturersCompleted; > > private event SearchCompanyCompletedEventHandler SearchCompanyCompleted; > > private event SearchLinkCompletedEventHandler SearchLinkCompleted; > > /// <remarks> >///Returns all manufacturers names and links. >///</remarks> > [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.atomic-x.com/xmlservices/GuitarManufWS/GetAllGuitarManufacturers", RequestNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ResponseNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] > public ManufacturerData GetAllGuitarManufacturers() { > object[] results = this.Invoke("GetAllGuitarManufacturers", new object[0]); > return ((ManufacturerData)(results[0])); > } > > public System.IAsyncResult BeginGetAllGuitarManufacturers(System.AsyncCallback callback, object asyncState) { > return this.BeginInvoke("GetAllGuitarManufacturers", new object[0], callback, asyncState); > } > > public ManufacturerData EndGetAllGuitarManufacturers(System.IAsyncResult asyncResult) { > object[] results = this.EndInvoke(asyncResult); > return ((ManufacturerData)(results[0])); > } > > public void GetAllGuitarManufacturersAsync() { > this.GetAllGuitarManufacturersAsync(null); > } > > public void GetAllGuitarManufacturersAsync(object userState) { > if ((this.GetAllGuitarManufacturersOperationCompleted == null)) { > this.GetAllGuitarManufacturersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllGuitarManufacturersCompleted); > } > this.InvokeAsync("GetAllGuitarManufacturers", new object[0], this.GetAllGuitarManufacturersOperationCompleted, userState); > } > > private void OnGetAllGuitarManufacturersCompleted(object arg) { > if ((this.GetAllGuitarManufacturersCompleted != null)) { > System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); > this.GetAllGuitarManufacturersCompleted(this, new GetAllGuitarManufacturersCompletedEventArgs1(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); > } > } > > /// <remarks> >///Searches company names. >///</remarks> > [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.atomic-x.com/xmlservices/GuitarManufWS/SearchCompany", RequestNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ResponseNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] > public ManufacturerData SearchCompany(string company) { > object[] results = this.Invoke("SearchCompany", new object[] { > company}); > return ((ManufacturerData)(results[0])); > } > > public System.IAsyncResult BeginSearchCompany(string company, System.AsyncCallback callback, object asyncState) { > return this.BeginInvoke("SearchCompany", new object[] { > company}, callback, asyncState); > } > > public ManufacturerData EndSearchCompany(System.IAsyncResult asyncResult) { > object[] results = this.EndInvoke(asyncResult); > return ((ManufacturerData)(results[0])); > } > > public void SearchCompanyAsync(string company) { > this.SearchCompanyAsync(company, null); > } > > public void SearchCompanyAsync(string company, object userState) { > if ((this.SearchCompanyOperationCompleted == null)) { > this.SearchCompanyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchCompanyCompleted); > } > this.InvokeAsync("SearchCompany", new object[] { > company}, this.SearchCompanyOperationCompleted, userState); > } > > private void OnSearchCompanyCompleted(object arg) { > if ((this.SearchCompanyCompleted != null)) { > System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); > this.SearchCompanyCompleted(this, new SearchCompanyCompletedEventArgs1(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); > } > } > > /// <remarks> >///Searches link data. >///</remarks> > [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.atomic-x.com/xmlservices/GuitarManufWS/SearchLink", RequestNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ResponseNamespace="http://www.atomic-x.com/xmlservices/GuitarManufWS", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] > public ManufacturerData SearchLink(string link) { > object[] results = this.Invoke("SearchLink", new object[] { > link}); > return ((ManufacturerData)(results[0])); > } > > public System.IAsyncResult BeginSearchLink(string link, System.AsyncCallback callback, object asyncState) { > return this.BeginInvoke("SearchLink", new object[] { > link}, callback, asyncState); > } > > public ManufacturerData EndSearchLink(System.IAsyncResult asyncResult) { > object[] results = this.EndInvoke(asyncResult); > return ((ManufacturerData)(results[0])); > } > > public void SearchLinkAsync(string link) { > this.SearchLinkAsync(link, null); > } > > public void SearchLinkAsync(string link, object userState) { > if ((this.SearchLinkOperationCompleted == null)) { > this.SearchLinkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchLinkCompleted); > } > this.InvokeAsync("SearchLink", new object[] { > link}, this.SearchLinkOperationCompleted, userState); > } > > private void OnSearchLinkCompleted(object arg) { > if ((this.SearchLinkCompleted != null)) { > System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); > this.SearchLinkCompleted(this, new SearchLinkCompletedEventArgs1(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); > } > } >} > >public class GetAllGuitarManufacturersCompletedEventArgs1 : System.ComponentModel.AsyncCompletedEventArgs { > > private object[] results; > > internal GetAllGuitarManufacturersCompletedEventArgs1(object[] results, System.Exception exception, bool cancelled, object userState) : > base(exception, cancelled, userState) { > this.results = results; > } > > public ManufacturerData Result { > get { > this.RaiseExceptionIfNecessary(); > return ((ManufacturerData)(this.results[0])); > } > } >} > >public delegate void GetAllGuitarManufacturersCompletedEventHandler(object sender, GetAllGuitarManufacturersCompletedEventArgs1 args); > >public class SearchCompanyCompletedEventArgs1 : System.ComponentModel.AsyncCompletedEventArgs { > > private object[] results; > > internal SearchCompanyCompletedEventArgs1(object[] results, System.Exception exception, bool cancelled, object userState) : > base(exception, cancelled, userState) { > this.results = results; > } > > public ManufacturerData Result { > get { > this.RaiseExceptionIfNecessary(); > return ((ManufacturerData)(this.results[0])); > } > } >} > >public delegate void SearchCompanyCompletedEventHandler(object sender, SearchCompanyCompletedEventArgs1 args); > >public class SearchLinkCompletedEventArgs1 : System.ComponentModel.AsyncCompletedEventArgs { > > private object[] results; > > internal SearchLinkCompletedEventArgs1(object[] results, System.Exception exception, bool cancelled, object userState) : > base(exception, cancelled, userState) { > this.results = results; > } > > public ManufacturerData Result { > get { > this.RaiseExceptionIfNecessary(); > return ((ManufacturerData)(this.results[0])); > } > } >} > >public delegate void SearchLinkCompletedEventHandler(object sender, SearchLinkCompletedEventArgs1 args);*/
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 322400
: 170676 |
170677
|
170678
|
170679
|
220559