Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Consume WebService
- This topic has 7 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
December 28, 2007 at 3:46 AM #18691
Hi Gurus,
I am new to BizTalk, I have a web service consisting of 4 web methods
Method1: Input parameters are 2 strings. Returns a boolean value.
Method2: Input parameters are 1 strings. Returns a Int value.
Method3: Input parameters are 2 strings. Returns a String.
Method4: Input parameters are 2 strings. Returns a Int value.
How can I develop an orchestration that communicate with these four methods.
Do I need to develop individual orchestration to consume each web method. or I need to develop an orchestration that can access any method among the four.
Please suggest me, which approach i need to follow.
Thanks and Regard
Venkat.
-
December 28, 2007 at 7:43 AM #18693
For details, read here … http://msdn2.microsoft.com/en-us/library/aa561062.aspx.
Short answer, it depends on how you want to use the services. If you want to call them all from a single orchestration, you can. If you have a business process that dictates them being called from multiple orchestrations, you can do that too.
-
December 28, 2007 at 7:24 PM #18695
I have the similar puzzlement about how to consume heterogeneous web services.If I use a dynamic port binding, I must
firstly add the web reference or the web proxy rely on the web service in the BTS project,with that programmatically set
the method name and assembly name in the expression shape.
I mean if must do this thereby will increase the coupling with those services.Considerations when implementing a ESb
by biztalk,What the detailed implementation under the intelligent routing agent in the Microsoft ESB guidance? -
December 31, 2007 at 12:57 AM #18700
Thank u rseroter,
“If you want to call them all from a single orchestration, you can.”
How can I call different web methods in single orchestration?. Can u please explain it. if posible can u provide sample code.
Thanks in advance.
Venkat.
-
December 31, 2007 at 9:21 AM #18701
When you add a web reference to a service, a “web port” is created that contains all the operations of the designated service. So when you create a new “configured port” in your orchestration, you reuse the auto-generated port, and all your operations are available. Then, it’s up to you as to which operations you wish to call.
There are a number of resources online and in MSDN about using BizTalk and web services together (http://msdn2.microsoft.com/en-us/library/ms935219.aspx).
-
January 1, 2008 at 8:07 PM #18703
Hi rseroter,
“When you add a web reference to a service, a “web port” is created that contains all the operations of the designated service. So when you create a new “configured port” in your orchestration, you reuse the auto-generated port, and all your operations are available. Then, it’s up to you as to which operations you wish to call.”
Here, Can i call more than two operations?, if yes, How?
Regards and Thanks
Venkat.
-
January 1, 2008 at 9:09 PM #18706
Yes you can call multiple operations. I encourage you to read the help docs on the topic (which I linked to earlier).
You’d call two operations just like you’d call one. Create a “web message” and send that message to the operation on the auto-generated web port. If your web port has 4 operations defined, you could create 4 messages and send each message to each corresponding operation.
-
January 2, 2008 at 8:06 PM #18717
Hi R Seroter,
Yes Seroter, We can create msg and send to operations. If there are four operations in web service, I would like to call any one of the operation, by sending request. finally I would like to publish this orchestration as web service. I have read the document, but i am not able to understand how to do this. Please can u explain how to do this.
Thanks and Regards
Venkat.
-
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.