Hi,
I did a web service code in asp.net .asmx file provided below.
This web method working fine in my asp.net application; but doesn't work in vb6 windows application. It throws an XML parser error.
Reference1:
ASP.NET and .ASMX
[WebMethod]
public void ASPNET_MsgBox(string message)
{
HttpContext.Current.Response.Write("");
}
Reference2:
VB6 Windows application code
Dim clnt As New MSOSOAPLib30.SoapClient30
Dim strsvc As String
'the client is initialized
clnt.MSSoapInit "http://192.168.10.129:83/WebService1.asmx?wsdl"
'the client calls the enc method of the service
clnt.ASPNET_MsgBox ("success")
I request someone to help me on this.
Note(Reason behind this Stuff for):
VB6 activex dll MsgBox() doesn't work in IIS hosting,but i need this msgBox or some other popup control in my VB6 dll function,that's why i am trying this kind of scenario.
I believe you guys may suggest me for the javascript or vbscript alert() function call,but situation is that alert() or some other popup should work at the VB6 DLL call itself.
Loading
Thavaselvan PalanivelPosted Apr 27, 2015, 11:01 PM
if you are doing in reverse order, you need to follow the below steps. 1.consume your web service in a .net component it should be COM enabled one. 2.you can add that COM component to your project easily. if you are going with is approach the performance of the application is increased. I did the same in my project and its working as expected.
I assumed that you are developing vb6 app