For curiosity if I have a method written as:
<System.Web.Services.WebMethod()> _
Public Function GetBlogEntries() As System.Xml.XmlDocument
Dim doc As New System.Xml.XmlDocument
doc.Load(Server.MapPath("history.xml"))
Return doc
End Function
And I open the .asmx itself in the browser (url:
http://juggernautical.com/aWebService2.asmx
), shouldn't "GetBlogEntries" appear in the list of supported
operations?
If it should then maybe the above code is the problem (?)
On Oct 21, 3:35 pm, Glenn <[EMAIL PROTECTED]> wrote:
> That is simply VB code that is running on the server. Just code the VB as
> you would if it was an interactive VB program. You're not doing something
> that will be permanent, so simply outputing "doc.ToString()" to "C:\doc.txt"
> would work for the purpose of what you're trying to accomplish, which is
> seeing if your method is getting the data properly.
>
> If the text file has what you need, then you can remove the output code
> knowing that your method is OK. Then you can turn your attention to the
> client. Otherwise, you will know that you have a problem with this method.
>
> There's plenty of examples on Google or in your MSDN documentation. Just
> search for "VB .NET Text
> File".http://www.google.com/search?q=VB+.NET+Text+File
>
> ...Glenn
>
>
>
> On Tue, Oct 21, 2008 at 3:05 PM, Brock <[EMAIL PROTECTED]> wrote:
>
> > I developed an .aspx page with the same basic datagrid, much the same
> > code behind, and consumed the XML data file with no problems.
> > So I may have a problem with the method's code for making the data
> > available via the .asmx.
> > Is there a way placing code into the .asmx that will render it to a
> > text file? I'm not following how that could be done.
>
> > <System.Web.Services.WebMethod()> _
> > Public Function GetBlogEntries() As System.Xml.XmlDocument
> > Dim doc As New System.Xml.XmlDocument
> > doc.Load(Server.MapPath("history.xml"))
> > Return doc
> > End Function
>
> > Seems like it should work but maybe there is a flaw in my above logic.-
> > Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment
You may subscribe to group Feeds using a RSS Feed Reader to stay upto date
using following url
<a href="http://feeds.feedburner.com/DotNetDevelopment">
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---