locked
Calling a web service from a custom workflow activity RRS feed

  • Question

  • Hi,
    I am building a custom workflow activity that calls a web service.
    How do i send messages to the web service through Soap messages or HTTP post?
    Can i have a sample code?
    Thanks in advance
    • Edited by ms_crm Friday, May 22, 2009 2:12 PM needed change
    Friday, May 22, 2009 1:51 PM

Answers

All replies

  • Hi, Sabine.

    Look this page .
    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    Friday, May 22, 2009 1:59 PM
    Moderator
  • hi, Thanks for your fast reply. What i need to call is a custom web service, not the crm webservices. I just need to know how to send info to it through SOAP messages. I am new in this.
    Friday, May 22, 2009 2:10 PM
  • Hi.

    Open Visual Studio. Open your project with custom workflow on it. Make right click on your project and select Add Web reference. Input Url of your Web Service and press add reference.

    You can see details here and here .

    After that you can use methods and classes of Web service like you have added simple reference.

    I hope this will help.
    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    Friday, May 22, 2009 2:19 PM
    Moderator
  • :-) i don't have a problem with adding the reference but all i need to know is if data is sent through SOAP messages or http. That's all i need to know
    Friday, May 22, 2009 2:22 PM
  • Hi, Sabine.

    SOAP protocol. Look this article .

    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    Friday, May 22, 2009 2:31 PM
    Moderator