Recieve and submit data in a form - InfoPath Dev
in

InfoPath Dev

Recieve and submit data in a form

Last post 10-29-2008 02:22 AM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-27-2008 11:12 AM

    Recieve and submit data in a form

    Hi,

    I am using a web service which submits data into database and has complex type as an input parameter. It works fine.

    Now I want to return some complex type data from the same web service. There is no option present to add a data connection to receive and submit data simultaneously.

     [WebMethod(MessageName="Returns Application data")]
        public ApplicationData SubmitSurvey(SurveyRequest newRequest, string creatorID)
        {
            try
            {

               return dataAccessObject.SubmitSurvey(newRequest, creatorID);
            }
            catch (Exception e)
            {

                throw e;
            }

        }

     

    Still I tried making a data connection to recieve data from web service (which internally insert value to the database and return me the complex type). This is giving me an error: 

    InfoPath cannot run the specified query.
    The SOAP response indicates that an error occurred:

    Server was unable to read request. ---> There is an error in XML document (1, 707). ---> String was not recognized as a valid DateTime.

     

     The code works fine if I use web service just to submit data i.e without a return type.

    Please let me know if there is some other way to do so

    Thanks
    Sourav
  • 10-29-2008 02:22 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Recieve and submit data in a form

    Hello,

    This is data type conversion error. Can you give more details on what is the character in the position of ‘707'. Can you check once what are you sending the input value for it?

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