<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: InfoPath Error when submitting to a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/12385.aspx</link><pubDate>Tue, 20 Mar 2007 22:52:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12385</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12385</wfw:commentRss><description>Hi chowyunli,&lt;br /&gt;&lt;br /&gt;You know we have a webservice that does exactly what you are trying to do generically that is available for free download: http://www.qdabra.com/proddetail.asp?prod=QDBXL1&lt;br /&gt;&lt;br /&gt;If you still want to go with yours though, why don't you just hook up the debugger to the web service and step through the call?  To do this, open the project in Visual Studio, and then select Debug -&amp;amp;gt; Attach to Process. The process is different on different operating systems, but on Windows Server 2003 it is w3wp.exe, on XP it is ASP_NET.exe I think.&lt;br /&gt;&lt;br /&gt;Good luck!</description></item><item><title>InfoPath Error when submitting to a Web Service</title><link>https://www.infopathdev.com:443/forums/thread/12163.aspx</link><pubDate>Tue, 13 Mar 2007 19:33:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12163</guid><dc:creator>chowyunli</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12163</wfw:commentRss><description>Hello All, &lt;br /&gt;&lt;br /&gt;I keep getting an error when I try to submit an InfoPath form to a web service that I  created. The Web Service parses the fields from the form and submits data to the database. &lt;br /&gt;&lt;br /&gt;Here's the error I keep getting: &lt;br /&gt;&lt;br /&gt;System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&amp;gt; System.NullReferenceException: Object reference not set to an instance of an object.&lt;br /&gt;   at TestParking.SubmitNewForm(myFields newForm)&lt;br /&gt;   --- End of inner exception stack trace ---&lt;br /&gt;&lt;br /&gt;And here's some of the code for the webservice&lt;br /&gt;&lt;br /&gt;    [WebMethod(Description = "Submit a new Vehicle Registration form to the database")]&lt;br /&gt;    public void SubmitNewForm(myFields newForm)&lt;br /&gt;    {&lt;br /&gt;        //Registration Fields&lt;br /&gt;        //User information&lt;br /&gt;        string userFirstName;&lt;br /&gt;        string userLastName;&lt;br /&gt;        string userEmailAddress;&lt;br /&gt;        string userPhone;&lt;br /&gt;        string userAlternatePhone;&lt;br /&gt;        string userJobTitle;&lt;br /&gt;        string userCompany;&lt;br /&gt;        string userType;&lt;br /&gt;        string userBuilding;&lt;br /&gt;        string userFloor;&lt;br /&gt;        string userStartTime;&lt;br /&gt;        string userBadgeNumber;&lt;br /&gt;&lt;br /&gt;        //vehicle information&lt;br /&gt;        string carPrimary;&lt;br /&gt;        string carYear;&lt;br /&gt;        string carMake;&lt;br /&gt;        string carModel;&lt;br /&gt;        string carColor;&lt;br /&gt;        string carState;&lt;br /&gt;        string carPlateNumber;&lt;br /&gt;        string carPermitNumber;&lt;br /&gt;&lt;br /&gt;        //Parking information&lt;br /&gt;        string internalID; //UserID&lt;br /&gt;        string active; //status - active||inactive&lt;br /&gt;        string assignedParkingLocation; //parking_id&lt;br /&gt;        int assignedParkingSpace; //parking_reserve&lt;br /&gt;&lt;br /&gt;        //Assign values to fields&lt;br /&gt;        //user&lt;br /&gt;        userFirstName = Convert.ToString(newForm.employee.firstName);&lt;br /&gt;        userLastName = Convert.ToString(newForm.employee.lastName);&lt;br /&gt;        userEmailAddress = Convert.ToString(newForm.employee.emailAddress);&lt;br /&gt;        userPhone = Convert.ToString(newForm.employee.workPhone);&lt;br /&gt;        userAlternatePhone = Convert.ToString(newForm.employee.alternatePhone);&lt;br /&gt;        userJobTitle = Convert.ToString(newForm.employee.jobTitle);&lt;br /&gt;        userCompany = Convert.ToString(newForm.employee.company);&lt;br /&gt;        userType = Convert.ToString(newForm.employee.type);&lt;br /&gt;        userBuilding = Convert.ToString(newForm.employee.building);&lt;br /&gt;        userFloor = Convert.ToString(newForm.employee.floor);&lt;br /&gt;        userStartTime = Convert.ToString(newForm.employee.startTime);&lt;br /&gt;        userBadgeNumber = Convert.ToString(newForm.employee.badgeNumber);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //Parking information&lt;br /&gt;        internalID = Convert.ToString(newForm.employee.userID);&lt;br /&gt;        active = Convert.ToString(newForm.employee.status.Value);&lt;br /&gt;        assignedParkingLocation = Convert.ToString(newForm.assignedParking.location);&lt;br /&gt;        assignedParkingSpace = Convert.ToInt32(newForm.assignedParking.space);&lt;font face="Courier New"&gt;&lt;/font id="Courier New"&gt;&lt;font face="Courier New"&gt;&lt;/font id="Courier New"&gt;&lt;font size="3"&gt;&lt;/font id="size3"&gt;</description></item></channel></rss>