<?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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: WebService SQL connection problems</title><link>https://www.infopathdev.com:443/forums/thread/17848.aspx</link><pubDate>Mon, 27 Mar 2006 17:32:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17848</guid><dc:creator>dmhollis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17848</wfw:commentRss><description>Thanks for the post Wayne,&lt;br /&gt;&lt;br /&gt;That got me started in the right direction.  My Web method parameters were not correct...now I think I'm on the right track.&lt;br /&gt;&lt;br /&gt;dmhollis</description></item><item><title>Re: WebService SQL connection problems</title><link>https://www.infopathdev.com:443/forums/thread/17847.aspx</link><pubDate>Wed, 22 Mar 2006 13:30:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17847</guid><dc:creator>wlarimore</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17847</wfw:commentRss><description>This is how I do it.  In my web service method I provide parameters like this:&lt;br /&gt;&lt;br /&gt;Public Function UpdateCategory(ByVal Description As String, ByVal Active As Boolean, ByVal CatID As Integer) As Boolean&lt;br /&gt;&lt;br /&gt;There are two ways to submit via Web Service: InfoPath Data Connections Or Managed Code (Visual Studio)...&lt;br /&gt;&lt;br /&gt;If using InfoPath Data Connections you Add your Web Service as a Submit Data Type.  You map your Web Service Method parameters to the Form Template Main Data Source fields.  Then you can add a button on the form and give it a Submit Action with the Data Connection you just created.  &lt;br /&gt;&lt;br /&gt;If you are using Managed Code you can do something like this in a Button Submit_OnClick event (VB.NET):&lt;br /&gt;&lt;br /&gt;Try&lt;br /&gt;  Dim ws as New YourWebService.Service&lt;br /&gt;  ws.URL = getCurrentServiceEnvironment() 'a function&lt;br /&gt;  ws.Credentials = getUserCredentials() 'a function&lt;br /&gt;  ws.UpdateCategory(strDescription, blnActive, intCatID)&lt;br /&gt;Catch ex as exception&lt;br /&gt;  'exception error handler here&lt;br /&gt;End Try&lt;br /&gt;&lt;br /&gt;That's it in a nutshell.  If you need further examples let us know and we can point you to some better documentation than mine here in this forum.</description></item><item><title>Re: WebService SQL connection problems</title><link>https://www.infopathdev.com:443/forums/thread/17846.aspx</link><pubDate>Mon, 20 Mar 2006 13:26:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17846</guid><dc:creator>dmhollis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17846</wfw:commentRss><description>I got past my connection error.... I included an Identity impersonate="true" tag in the web service web.config file and now it submits.  However, I'm still not getting any data updated in my database.  Now I seem to need some work on my dataset.  Can I submit the entire form (as one of the options suggests?)  I have tried submitting my fields as a group to the dataset and that isnn't working.&lt;br /&gt;dmhollis</description></item><item><title>Re: WebService SQL connection problems</title><link>https://www.infopathdev.com:443/forums/thread/17845.aspx</link><pubDate>Thu, 16 Mar 2006 01:14:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17845</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17845</wfw:commentRss><description>Is this error specific to infopath?  Meaning have tried running this web service in debug mode within visual studio?  Looks like you may have a connection string issue.  Would you mind posting your connection string?  Also ensure that you SQL Server DB allows for SQL server login accounts (Enterprise Manager &amp;gt;&amp;gt; right click DB instance &amp;gt;&amp;gt; properties &amp;gt;&amp;gt; security tab &amp;gt;&amp;gt; Authentication check "SQL Server and Windows").</description></item><item><title>WebService SQL connection problems</title><link>https://www.infopathdev.com:443/forums/thread/17527.aspx</link><pubDate>Wed, 15 Mar 2006 20:00:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17527</guid><dc:creator>dmhollis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17527.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17527</wfw:commentRss><description>I'm having trouble submitting an Infopath form via my newly created WebService.  Here's the error I keep getting when I submit:&lt;br /&gt;&lt;br /&gt;The SOAP response indicates that an error occurred on the server:&lt;br /&gt;&lt;br /&gt;System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&amp;gt; System.Data.SqlClient.SqlException: Login failed for user 'dhollis2'.&lt;br /&gt;   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)&lt;br /&gt;   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)&lt;br /&gt;   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)&lt;br /&gt;   at System.Data.SqlClient.SqlConnection.Open()&lt;br /&gt;   at InfopathService1.Service1.UpdateCustomers(DataSet dsUpdated) in c:\inetpub\wwwroot\infopathservice1\service1.asmx.cs:line 177&lt;br /&gt;   --- End of inner exception stack trace ---&lt;br /&gt;&lt;br /&gt;I originally had integrated security=sspi but found a blog that told me what to do for that.... my login is the SQL db owner and has admin rights on the machine and I have made the Trusted Connection=False, but am still having no luck getting past this error.  Any thoughts out there?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;dmhollis</description></item></channel></rss>