S
sadhana
Hi,
I am trying to submit data to the sharepoint server through a web service. I
have deployed web service to the sharepoint server machine.Its path in that
machine is as follows:
http://server:7020/Service.asmx
I have created a data connection with the Infopath form to submit the data
to the above web service. Now, I am executing this web service in the
submit_button click event using the code below.
DataConnection submit=this.DataConnections["Web Service Submit"];
submit.Execute();
But, it is giving me the exception at run time, when I click on submit
button, it is giving me the following error at the second line of code.
System.Net.WebException was unhandled by user code
Message="InfoPath cannot submit the form.\nAn error occurred while the
form was being submitted."
Source="Microsoft.Office.InfoPath.Client.Internal.Host"
StackTrace:
at
Microsoft.Office.InfoPath.Internal.MomExceptionHelper.ExecuteDataConnectionAction(OMCall d)
at
Microsoft.Office.InfoPath.Internal.WebServiceConnectionHost.Execute()
at
Microsoft.Office.InfoPath.Internal.FormEventsHost.OnSubmit(DocReturnEvent
pEvent)
at
Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnSubmitRequest(DocReturnEvent pEvent)
Can any body tell me what would be the error?
Thanks
I am trying to submit data to the sharepoint server through a web service. I
have deployed web service to the sharepoint server machine.Its path in that
machine is as follows:
http://server:7020/Service.asmx
I have created a data connection with the Infopath form to submit the data
to the above web service. Now, I am executing this web service in the
submit_button click event using the code below.
DataConnection submit=this.DataConnections["Web Service Submit"];
submit.Execute();
But, it is giving me the exception at run time, when I click on submit
button, it is giving me the following error at the second line of code.
System.Net.WebException was unhandled by user code
Message="InfoPath cannot submit the form.\nAn error occurred while the
form was being submitted."
Source="Microsoft.Office.InfoPath.Client.Internal.Host"
StackTrace:
at
Microsoft.Office.InfoPath.Internal.MomExceptionHelper.ExecuteDataConnectionAction(OMCall d)
at
Microsoft.Office.InfoPath.Internal.WebServiceConnectionHost.Execute()
at
Microsoft.Office.InfoPath.Internal.FormEventsHost.OnSubmit(DocReturnEvent
pEvent)
at
Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnSubmitRequest(DocReturnEvent pEvent)
Can any body tell me what would be the error?
Thanks