1
Answer

Vb6 webservice call issue

kannappan

kannappan

9y
789
1
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("<SCRIPT> alert( '" + message + "')</SCRIPT>");
}

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.
Answers (1)