How can I submit an attachment to a Web Service? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

How can I submit an attachment to a Web Service?

Last post 08-19-2013 06:35 PM by Ramon84. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-15-2013 11:05 AM

    How can I submit an attachment to a Web Service?

    Help, please.

    How can I submit an attachment to a Web Service?

    Should I convert the attachment to BASE64 before sending the data?

    Thanks in advanced!
  • 08-18-2013 04:42 PM In reply to

    Re: How can I submit an attachment to a Web Service?

    The attachment is encoded as Base64 in the XML so no conversion is required.

    Does your Web service take the entire XML as a string? Or is it parameterized?

    Best practice is to make it loosely coupled, i.e. take the entire XML as a string. No parameter validation needed because InfoPath won't submit an invalid form anyway.

    Qdabra's DBXL Web service is a great example of the loosely couple approach. Supports all data types: images, attachments, rich text, hotdogs ... you name it!

    :)

    Patrick Halstead
    Project Manager at Qdabra
  • 08-19-2013 06:35 PM In reply to

    Re: How can I submit an attachment to a Web Service?

    Hi Patrick,

    I need to create a custom XML based on the InfoPath Form using Bizagi's data model. For Example:

    <BizAgiXMLNode>InfoPathFieldValue<BizAgiXMLNode>

    Please, take a look:

    http://wiki.bizagi.com/en/index.php?title=How_to_Create_a_Case_Using_SOA

    You said:

    "The attachment is encoded as Base64 in the XML so no conversion is required".

    How can I read the string (Base64) of the attachment?

    In the end I need this:

    <BizAgiXMLNode>Base64AttachmentString<BizAgiXMLNode>

    Thanks in advanced.

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