call web service - InfoPath Dev
in

InfoPath Dev

call web service

Last post 11-27-2008 02:46 AM by Jimmy. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-26-2008 06:37 PM

    call web service

    can we call a Web service method from InfoPath like windowforms
    I added a web reference. i've an exception
    Dim WebMethodAjouterRisque As New AjouterRisque.Service 
    Dim iCode as integer
    Dim sNom  as string
    WebMethodAjouterRisque.AJOUTER(iCode, sNom ) 
     
    AjouterRisque: is web reference 
    AJOUTER is webmethod
    I use vbnet and infopath 2007 
     
    Thanks for your answer! 
  • 11-26-2008 11:00 PM In reply to

    Hi,

    Yes, you can call web service methods in InfoPath.Can you give me the details of your exception.So that i can help you.

     

    Chandrakanth/GGKTech
  • 11-27-2008 02:36 AM In reply to

     Hi chandrakanth

    Exception is : The exception securityException has not been managed by the user code(Failed to request permission of type 'System.Net.WebPermission, System, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089 failed.)

     

     

    as if I have no right to call the web service

    Thanks for answer! 

  • 11-27-2008 02:46 AM In reply to

    Hello,

     You may not be able to do this without setting your form to full trust, and even then it may not be possible. Typically in InfoPath one would call a webservice by using a Data Connection.  Is there a reason you do not want to do that?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.