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.
>

--~--~---------~--~----~------------~-------~--~----~
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>
-~----------~----~----~----~------~----~------~--~---

Reply via email to