Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have an InfoPath form in SharePoint that submits to a custom web service I've created, and this works fine for regular SharePoint fields (text, numeric, etc.)

However, I cannot figure out how to set up the web service to receive attachments from InfoPath. I've created a field in the web service called MyAttachmentField, and mapped the attachments field to it in InfoPath. However, when I add an attachment, all InfoPath sends (instead of the complete file) is:

<tns:MyAttachmentField><attachmentURL/></tns:MyAttachmentField>

I've tried various different types for MyAttachmentField: string, byte[], and XmlElement - but none seem to work.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.