Can not submit InfoPath form to a WebService

  • 3 December 2005
  • 2 replies
  • 4 views

Badge +1
1. Web service "TestWS2" with the below web method is created and running successfully.

[webmethod]
public string SendXMLElement(System.Xml.XmlElement theElement)
{
return "Node with " + theElement.ChildNodes.Count + " children submitted.";
}

2. The following data connection (Submit Data to a Web Service) "WS Submit 2" is created in InfoPath:

WS location = http://localhost:1602/TestWS2/Service.asmx?WSDL
Operation = SendXMLElement
*Parameter = one of the nodes from the form data source

3. InfoPath form contains a button, which is set for submition the form to a web service. Data connection for submit = WS Submit 2

4. Preview the form. Enter the appropriate value for the node which is used as *Parameter

5. Click Submit button -> teh following error message is shown:

"InfoPath cannot submit the form
An error occured while the form was being submitted
Access is denied"


Did anybody face such behaviour? Could you please tell me how I can solve it?

2 replies

Badge +1
Some more information:

The template is published on a SharePoint portal

If the template is published on a local drive the form is submitted to Web Service successfully.
Badge +11
Definitely (in my opinion) a permissions problem in Sharepoint. Make sure you give the users explicit 'Contibutor' rights in Sharepoint. Not sure what your setup looks like but give logged on user, AppPool ID user and other Service users the appropriate rights. Could also be a Kerberos issue if you need to pass credentials across servers.

Hope this helps,
Ockert

Reply