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