Call webservice from infopath formcode problem - InfoPath Dev
in

InfoPath Dev

Call webservice from infopath formcode problem

Last post 07-28-2006 07:42 AM by fredarwin. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-11-2006 02:52 AM

    • Krispi
    • Not Ranked
    • Joined on 07-11-2006
    • Belgium
    • Posts 2

    Call webservice from infopath formcode problem

    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
  • 07-28-2006 07:42 AM In reply to

    Re: Call webservice from infopath formcode problem

    Try passing credentials to ur ws.

    ws2.Credentials= System.Net.CredentialCache.DefaultCredentials;

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