Hello
I'm trying to call a webservice from the formcode.cs file of my infopath form. The infopath is published (fully trusted) to a sharepoint library. When the code executes the call to the webservice I get an unauthorized exception. This exception only fires when I call this webservice in my formcode, if I call the same webservice throught the infopath datasource there is no problem.
Any ideas? It's most likely that I have to pass user credentials but how?
greets