at the minute within my proxy class i have the following:-
now i could make the me.url configurable quite easily, but the soap headers and binding attributes also have the IP address which would need configuredCode:Public Sub New() MyBase.New() Me.Url = "http://xxx.xxx.1.19/genericinterfacews/genericinterface.asmx" End Sub
Code:<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://xxx.xxx.1.19/genericinterfacews/genericinterface.asmx/HCNSubscribe", RequestNamespace:="http://xxx.xxx.1.19/genericinterfacews/genericinterface.asmx", ResponseNamespace:="http://xxx.xxx.1.19/genericinterfacews/genericinterface.asmx", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function HCNSubscribe(ByVal HCN_NO As String, ByVal SystemPatientID As String, ByVal Username As String, ByVal Password As String, ByVal EndSystemUser As String, ByVal MsgID As String) As String
is it somehow possible to make the url configuarble throughout? im not sure it isCode:<System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42"), _ System.Diagnostics.DebuggerStepThroughAttribute(), _ System.ComponentModel.DesignerCategoryAttribute("code"), _ System.Web.Services.WebServiceBindingAttribute(Name:="Generic Interface Web ServiceSoap", [Namespace]:="http://xxx.xxx.1.19/genericinterfacews/genericinterface.asmx")> _ Partial Public Class GenericInterfaceWebService
reason i ask, is the proxy is used to call a 3rd party webservice but they said the IP may change in the future and we dont want to re-release, just change the IP in a config file
Cheers,
Craig




Reply With Quote