J
Javier
Hi, I need to add an attachment to the list I use to submit a web-based
Infopath form. I'm writing custom code in the FormEvents_Submit method to
call the DataConnection associated to the Web Service (_vti_bin/Lists.asmx --
AddAttachment)
When I call the Execute method, I get the following error:
-----
InfoPath cannot submit the form.
An error occurred while the form was being submitted.

The SOAP response indicates that an error occurred on the server:
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was
thrown.
<detail><errorstring
xmlns="http://schemas.microsoft.com/sharepoint/soap/">Input string was not in
a correct format.</errorstring></detail>
-----
I think this is related to the attachment field (tns:attachment -
base64Binary) that is not being passed correctly to the web service. Any
ideas on how to solve this problem?
Thanks a lot!
Javier.
Infopath form. I'm writing custom code in the FormEvents_Submit method to
call the DataConnection associated to the Web Service (_vti_bin/Lists.asmx --
AddAttachment)
When I call the Execute method, I get the following error:
-----
InfoPath cannot submit the form.
An error occurred while the form was being submitted.

The SOAP response indicates that an error occurred on the server:
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was
thrown.
<detail><errorstring
xmlns="http://schemas.microsoft.com/sharepoint/soap/">Input string was not in
a correct format.</errorstring></detail>
-----
I think this is related to the attachment field (tns:attachment -
base64Binary) that is not being passed correctly to the web service. Any
ideas on how to solve this problem?
Thanks a lot!
Javier.