InfoPath form submit, web service, and base64

K

Kevin Dente

OK, I'm new to InfoPath, so forgive me if this is a dumb question.

I'm trying to submit an InfoPath form to a web service. The service takes a
some simple elements, and a complex XML structure which contains some simple
data elements and a base64-encoded string (ie byte[]) where the actual form
document would go. In other words, the web method looks something like this
(in C# form)

void SubmitDocument(string submitter, SubmitRequest request);

where SubmitRequest looks something like:

class SubmitRequest
{
byte[] document; //The infopath form goes here
string someOtherStuff;
...
}

I've been able to create a form data source from the WSDL and pass in the
simple data types. But the byte[] field has me stumped. The submit Data
Connection wizard lets you map the entire form to a simple data type in the
webmethod param list, but doesn't let you pick a subelement of a complex
type (and even if it did, it's not clear whether is would be able to base64
it).

I looked at maybe setting the field value through script, but I can't find
any functions or methods to Base64-encode a value.

Am I missing something? Or am I simple outside the bounds of what Infopath
supports?

Thanks,
Kevin
 

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

Top