Answered by:
Calling a web service from a custom workflow activity

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
-
Hi, Sabine.
SOAP protocol. Look this article .
Truth is opened the prepared mind My blog - http://a33ik.blogspot.com- Marked as answer by DavidJennawayMVP, Moderator Thursday, June 4, 2009 11:58 AM
Friday, May 22, 2009 2:31 PMModerator
All replies
-
- Proposed as answer by Andrii ButenkoMVP, Moderator Friday, May 22, 2009 1:59 PM
Friday, May 22, 2009 1:59 PMModerator -
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.comFriday, May 22, 2009 2:19 PMModerator -
:-) 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 knowFriday, 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- Marked as answer by DavidJennawayMVP, Moderator Thursday, June 4, 2009 11:58 AM
Friday, May 22, 2009 2:31 PMModerator