I created a Web Service for Sharepoint. All it does is add a record to a table in a SQL Database. The connection to the SQL DB is through SQL authentication. I created this Web Service the proper way, signed, disco, wsdl and assembly on the SharePoint server. I created a Web Application to consume the Web Service and it works like a charm. It also works great with the InfoPath form when used from a client. However when published to a SharePoint library, it errors out when I submit the form. The error I get in the SharePoint Log is as follows:
The remote server returned an error: (401) Unauthorized
I've looked all over the Internet but nothing is clear. When I consume the WS, I have to pass authentication to it in order for it to work. Do I have to do the same when I publish the form?
Any advice is greatly appreciated.