Hi i was able to create adapt the proxy class generated by Visual Studio to call the Web Service the XML Gateways had generate.
Here is the source code.
Thanks for all your help and i hope this can help others to.
Regards
Carlos Abad
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
using System.Configuration;
///
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute(“code”)]
[System.Web.Services.WebServiceBindingAttribute(Name=“WS_SP_SAGPRIORIZARDIFERIDOSoapBinding”, Namespace=“”)]
public class PriorizarDiferidoT : System.Web.Services.Protocols.SoapHttpClientProtocol
{
/// <remarks/>
public PriorizarDiferidoT()
{
//this.Url = "http://meganeii:8080/fraxis/services/WS_SP_SAGPRIORIZARDIFERIDO";
this.Url=ConfigurationSettings.AppSettings["urlWS"];
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("MessageDefinition", Namespace="")]
public object MessageDefinition(string NUMPEDTOPAS, string FRANQUICIA, string REFERENCIA)
{
object[] results = this.Invoke("MessageDefinition", new object[] {NUMPEDTOPAS,FRANQUICIA,REFERENCIA});
return ((object)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginProcessDocument(object ProcessDocument1, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("ProcessDocument", new object[] {
ProcessDocument1}, callback, asyncState);
}
/// <remarks/>
public object EndProcessDocument(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((object)(results[0]));
}
}
#webMethods#Mainframe-Integration#EntireX