Infopath submitting to biztalk webservice problem

  • Thread starter Andy Britcliffe
  • Start date
A

Andy Britcliffe

Hi

I have a reasonably complex infopath form that I want to submit to a biztalk
orchestration webservice. I am hitting 1 problem which is really causing me a
headache. When I use the sumit button in Infopath I get the following error:


The SOAP response indicates that an error occurred:

System.Web.Services.Protocols.SoapException: Server was unable to read
request. ---> System.InvalidOperationException: There is an error in XML
document (1, 565). ---> System.FormatException: String was not recognized as
a valid DateTime.
at System.DateTimeParse.ParseExactMultiple(String s, String[] formats,
DateTimeFormatInfo dtfi, DateTimeStyles style, DateTime& result)
at System.DateTime.ParseExact(String s, String[] formats, IFormatProvider
provider, DateTimeStyles style)
at System.Xml.XmlConvert.ToDateTime(String s, String[] formats)
at System.Xml.Serialization.XmlCustomFormatter.ToDateTime(String value,
String[] formats)
at System.Xml.Serialization.XmlCustomFormatter.ToDate(String value)
at System.Xml.Serialization.XmlSerializationReader.ToDate(String value)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read1_mortgageApplication(Boolean isNullable, Boolean checkType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read81_Operation_1()
at
Microsoft.Xml.Serialization.GeneratedAssembly.Operation_1Serializer.Deserialize(XmlSerializationReader reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()

Now it seems these fields are entered using a DatePicker and the date is
clearly not going into the webservice in a correct format. Anybody come
across this before and more importantly found a workaround?

Thanks

Andy
 
H

Henning Krause [MVP]

Hello,

Have you looked at the data that is actually transmitted to the server? I
would recommend a Network Monitor (like Ethereal) to monitor the traffic.
You can then see in what format the datetime is sent.

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)


Andy Britcliffe said:
Hi

I have a reasonably complex infopath form that I want to submit to a
biztalk
orchestration webservice. I am hitting 1 problem which is really causing
me a
headache. When I use the sumit button in Infopath I get the following
error:


The SOAP response indicates that an error occurred:

System.Web.Services.Protocols.SoapException: Server was unable to read
request. ---> System.InvalidOperationException: There is an error in XML
document (1, 565). ---> System.FormatException: String was not recognized
as
a valid DateTime.
at System.DateTimeParse.ParseExactMultiple(String s, String[] formats,
DateTimeFormatInfo dtfi, DateTimeStyles style, DateTime& result)
at System.DateTime.ParseExact(String s, String[] formats,
IFormatProvider
provider, DateTimeStyles style)
at System.Xml.XmlConvert.ToDateTime(String s, String[] formats)
at System.Xml.Serialization.XmlCustomFormatter.ToDateTime(String value,
String[] formats)
at System.Xml.Serialization.XmlCustomFormatter.ToDate(String value)
at System.Xml.Serialization.XmlSerializationReader.ToDate(String value)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read1_mortgageApplication(Boolean
isNullable, Boolean checkType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read81_Operation_1()
at
Microsoft.Xml.Serialization.GeneratedAssembly.Operation_1Serializer.Deserialize(XmlSerializationReader
reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader)
at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()

Now it seems these fields are entered using a DatePicker and the date is
clearly not going into the webservice in a correct format. Anybody come
across this before and more importantly found a workaround?

Thanks

Andy
 
A

Andy Britcliffe

Thanks Henning I will have a look into it.

Andy

Henning Krause said:
Hello,

Have you looked at the data that is actually transmitted to the server? I
would recommend a Network Monitor (like Ethereal) to monitor the traffic.
You can then see in what format the datetime is sent.

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)


Andy Britcliffe said:
Hi

I have a reasonably complex infopath form that I want to submit to a
biztalk
orchestration webservice. I am hitting 1 problem which is really causing
me a
headache. When I use the sumit button in Infopath I get the following
error:


The SOAP response indicates that an error occurred:

System.Web.Services.Protocols.SoapException: Server was unable to read
request. ---> System.InvalidOperationException: There is an error in XML
document (1, 565). ---> System.FormatException: String was not recognized
as
a valid DateTime.
at System.DateTimeParse.ParseExactMultiple(String s, String[] formats,
DateTimeFormatInfo dtfi, DateTimeStyles style, DateTime& result)
at System.DateTime.ParseExact(String s, String[] formats,
IFormatProvider
provider, DateTimeStyles style)
at System.Xml.XmlConvert.ToDateTime(String s, String[] formats)
at System.Xml.Serialization.XmlCustomFormatter.ToDateTime(String value,
String[] formats)
at System.Xml.Serialization.XmlCustomFormatter.ToDate(String value)
at System.Xml.Serialization.XmlSerializationReader.ToDate(String value)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read1_mortgageApplication(Boolean
isNullable, Boolean checkType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read81_Operation_1()
at
Microsoft.Xml.Serialization.GeneratedAssembly.Operation_1Serializer.Deserialize(XmlSerializationReader
reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader)
at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()

Now it seems these fields are entered using a DatePicker and the date is
clearly not going into the webservice in a correct format. Anybody come
across this before and more importantly found a workaround?

Thanks

Andy
 
H

Henning Krause [MVP - Exhange]

Instean of using a Network monitor, you might find it more simple to fiddler
(http://www.fiddlertool.com/fiddler/) a proxy that monitors and displays the
traffic.

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)


Andy Britcliffe said:
Thanks Henning I will have a look into it.

Andy

Henning Krause said:
Hello,

Have you looked at the data that is actually transmitted to the server? I
would recommend a Network Monitor (like Ethereal) to monitor the traffic.
You can then see in what format the datetime is sent.

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)


Andy Britcliffe said:
Hi

I have a reasonably complex infopath form that I want to submit to a
biztalk
orchestration webservice. I am hitting 1 problem which is really
causing
me a
headache. When I use the sumit button in Infopath I get the following
error:


The SOAP response indicates that an error occurred:

System.Web.Services.Protocols.SoapException: Server was unable to read
request. ---> System.InvalidOperationException: There is an error in
XML
document (1, 565). ---> System.FormatException: String was not
recognized
as
a valid DateTime.
at System.DateTimeParse.ParseExactMultiple(String s, String[]
formats,
DateTimeFormatInfo dtfi, DateTimeStyles style, DateTime& result)
at System.DateTime.ParseExact(String s, String[] formats,
IFormatProvider
provider, DateTimeStyles style)
at System.Xml.XmlConvert.ToDateTime(String s, String[] formats)
at System.Xml.Serialization.XmlCustomFormatter.ToDateTime(String
value,
String[] formats)
at System.Xml.Serialization.XmlCustomFormatter.ToDate(String value)
at System.Xml.Serialization.XmlSerializationReader.ToDate(String
value)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read1_mortgageApplication(Boolean
isNullable, Boolean checkType)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read81_Operation_1()
at
Microsoft.Xml.Serialization.GeneratedAssembly.Operation_1Serializer.Deserialize(XmlSerializationReader
reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader)
at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at
System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()

Now it seems these fields are entered using a DatePicker and the date
is
clearly not going into the webservice in a correct format. Anybody come
across this before and more importantly found a workaround?

Thanks

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top