C
Chan
I have an XML Web Service as part of a project (called Net) in VS.NET
2003.
This web service is named NetSvc. It has a public function named
CreateRpt to generate an Excel file. CreateRpt returns string.
It works perfectly when testing using URL interactively,
http://WebServer/WebApp/NetSvc.asmx?op=CreateRpt
Then a consumer page testRpt.aspx was created for prototype. Here is
the code of .aspx
----------------------------------------
<%@ Page Language="vb" AutoEventWireup="true"
Codebehind="testRpt.aspx.vb" Inherits="Net.testRpt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
Just Testing
</form>
</body>
</html>
----------------------------------------
Here is the code of .aspx.vb
----------------------------------------
Public Class testRpt
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the Web
Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim myRpt As NetSvc = New NetSvc
Dim a As String
a = myRpt.createRpt()
End Sub
End Class
----------------------------------------
After invoking the testRpt.aspx, an Excel file was created exactly as
expected, but the page was never displayed with the IE/globe logo at
the upper right corner spinning forever.
Any clue?
Thanks!!!
2003.
This web service is named NetSvc. It has a public function named
CreateRpt to generate an Excel file. CreateRpt returns string.
It works perfectly when testing using URL interactively,
http://WebServer/WebApp/NetSvc.asmx?op=CreateRpt
Then a consumer page testRpt.aspx was created for prototype. Here is
the code of .aspx
----------------------------------------
<%@ Page Language="vb" AutoEventWireup="true"
Codebehind="testRpt.aspx.vb" Inherits="Net.testRpt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
Just Testing
</form>
</body>
</html>
----------------------------------------
Here is the code of .aspx.vb
----------------------------------------
Public Class testRpt
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the Web
Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim myRpt As NetSvc = New NetSvc
Dim a As String
a = myRpt.createRpt()
End Sub
End Class
----------------------------------------
After invoking the testRpt.aspx, an Excel file was created exactly as
expected, but the page was never displayed with the IE/globe logo at
the upper right corner spinning forever.
Any clue?
Thanks!!!