Read return value from web service - InfoPath Dev
in

InfoPath Dev

Read return value from web service

Last post 03-18-2010 12:40 AM by Jarecki. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 03-17-2010 07:57 AM

    • Jarecki
    • Not Ranked
      Male
    • Joined on 02-09-2010
    • Gliwice, Poland
    • Posts 25

    Read return value from web service

    Hi, On my form I have created a button and a couple of rules connected with it. Each rule sends data using data connections to web service. Is it possible to get value that web service returns? Infopath unfortunatelly executes next rule no matter previous submiting operation succedess or not. If false is returned I would like to terminate executing rule chain. regards Jarek
  • 03-17-2010 08:05 AM In reply to

    Re: Read return value from web service

     You just need to split up your rules into separate rule sets, and use a condition at some point to stop executing rules if the web service returns false.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 03-17-2010 12:06 PM In reply to

    Re: Read return value from web service

    Hi Jarecki,

    this question was discussed in this forum a while ago. Please have a look here:

    http://www.infopathdev.com/forums/t/4599.aspx

    Regards,

    Karsten
  • 03-18-2010 12:00 AM In reply to

    • Jarecki
    • Not Ranked
      Male
    • Joined on 02-09-2010
    • Gliwice, Poland
    • Posts 25

    Re: Read return value from web service

    Jimmy:

     You just need to split up your rules into separate rule sets, and use a condition at some point to stop executing rules if the web service returns false.

    Yes, my rules are are in separate rule sets, each of them have one rule action. Both data connections are "sending data connections", so I can't use return value from web service. Should I create receiving data connections to read result? First web service receives one parameter - entire form content with digital signature (as string).
  • 03-18-2010 12:40 AM In reply to

    • Jarecki
    • Not Ranked
      Male
    • Joined on 02-09-2010
    • Gliwice, Poland
    • Posts 25

    Re: Read return value from web service

    I have created receiving connection and set connection parameter via rule (value of 'myFields' root element) but web services receives null parameter. In 'sending data connection' wizard I could specify to insert in parameter entire form contents (in XML and with digital signature) and send it as string. Worked perfectly. ;) Is it possible in receiving connection? regards Jarek
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.