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?
Page 1 / 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.
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.
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
Hope this helps,
Ockert
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.