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
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