InfoPath is throwing exception with Web Service - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

InfoPath is throwing exception with Web Service

Last post 09-26-2007 11:27 AM by cathy. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-26-2007 11:27 AM

    • cathy
    • Top 500 Contributor
    • Joined on 08-19-2007
    • Posts 38

    InfoPath is throwing exception with Web Service

    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:7080/Service.asmx. It is working well in that machine.
    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

    Filed under: ,
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.