Writing InfoPath XML to SQL via web service - InfoPath Dev
in

InfoPath Dev

Writing InfoPath XML to SQL via web service

Last post 12-02-2009 09:41 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-02-2009 08:50 AM

    Writing InfoPath XML to SQL via web service

    I'm trying to follow S.Y.M. Wong-A-Ton' s instructions for saving InfoPath XML to SQL via a web service.  I'm not sure whether I set up the Visual Studio Project correctly. 

    When I access the web page from InfoPath, the error I get is: 

    "A namespace cannot directly contain members such as fields or methods".
     
    A portion of my code is below.  The line that gets the error is indicated.
    P.S.  I'm new at this so it might be an obvious error.


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    namespace SubmitResourceRequestForm
    {
        public partial class _Default : System.Web.UI.Page
        {        protected void Page_Load(object sender, EventArgs e)
            {
     ERROR IS ON THIS LINE --->>>>           System.Xml.XPath.XPathDocument xDoc =
                        new System.Xml.XPath.XPathDocument(Request.InputStream);
                System.Xml.XPath.XPathNavigator navigator = xDoc.CreateNavigator();


     

  • 12-02-2009 09:41 PM In reply to

    Re: Writing InfoPath XML to SQL via web service

    David,

    Gee, you know we're super busy around here. Have you tried contacting the person who wrote that blog?

    :)

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.