Consuming a Web Service Asynchronously
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Consuming a Web Service Asynchronously




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Consuming a Web Service Asynchronously  
Paul J. Lay


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-16-05 10:50 PM

I can see where a BizTalk orchestration can expose a Web Service interface
which can be consumed asynchronously.  Is it possible to consume a Web
Service asynchronously from within a Biztalk orchestration?  Please advise.
Thanks for your help.

Best Regards,

Paul J. Lay







[ Post a follow-up to this message ]



    Re: Consuming a Web Service Asynchronously  
Jon Flanders[MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-16-05 10:50 PM

What kind of webservice would support the async call?

--
Jon Flanders
http://www.masteringbiztalk.com/blogs/jon/

"Paul J. Lay" <pjlay@msn.com> wrote in message
news:efs5tPlWFHA.584@TK2MSFTNGP15.phx.gbl...
>I can see where a BizTalk orchestration can expose a Web Service interface
> which can be consumed asynchronously.  Is it possible to consume a Web
> Service asynchronously from within a Biztalk orchestration?  Please
> advise.
> Thanks for your help.
>
> Best Regards,
>
> Paul J. Lay
>
>







[ Post a follow-up to this message ]



    Re: Consuming a Web Service Asynchronously  
Paul J. Lay


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-16-05 10:50 PM

Any web service that cannot respond quickly.  The .NET AsyncCallback and
IAsyncResult classes can be used in a web service client for asynchronous
web service client requests and status.  This works really well in a web
service client outside of a Biztalk orchestration but I don't know how this
could fit inside of a BizTalk orchestration.  This is essentially my
question.  I would appreciate any insight you might have on this.

Best Regards,

Paul J. Lay

"Jon Flanders[MVP]" <jon.flanders@gmail.com> wrote in message
news:OKJIV3lWFHA.2976@TK2MSFTNGP10.phx.gbl...
> What kind of webservice would support the async call?
>
> --
> Jon Flanders
> http://www.masteringbiztalk.com/blogs/jon/
>
> "Paul J. Lay" <pjlay@msn.com> wrote in message
> news:efs5tPlWFHA.584@TK2MSFTNGP15.phx.gbl... 
interface[vbcol=seagreen] 
>
>







[ Post a follow-up to this message ]



    Re: Consuming a Web Service Asynchronously  
Yossi Dahan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-17-05 12:47 PM

Paul hi,

I am not familiar with the async approach for web services you've mentioned,
but one option that comes into my mind is to consume the web service from
the orchestration as a one way call.
Then publish the schema of the async result you're expecting as a web
service from BizTalk to which the client will eventually call
asynchronously.

You can then use correlation to bring that message back into your
orchestration.

I hope this makes sense

Yossi Dahan

"Paul J. Lay" <pjlay@msn.com> wrote in message
news:%23ipSOAmWFHA.1148@tk2msftngp13.phx.gbl...
> Any web service that cannot respond quickly.  The .NET AsyncCallback and
> IAsyncResult classes can be used in a web service client for asynchronous
> web service client requests and status.  This works really well in a web
> service client outside of a Biztalk orchestration but I don't know how
> this
> could fit inside of a BizTalk orchestration.  This is essentially my
> question.  I would appreciate any insight you might have on this.
>
> Best Regards,
>
> Paul J. Lay
>
> "Jon Flanders[MVP]" <jon.flanders@gmail.com> wrote in message
> news:OKJIV3lWFHA.2976@TK2MSFTNGP10.phx.gbl... 
> interface 
>
>







[ Post a follow-up to this message ]



    Re: Consuming a Web Service Asynchronously  
Paul J. Lay


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-17-05 12:47 PM

Thanks for your prompt response.  Most .NET books have examples of Web
Service clients with synchronous and asynchronous client requests using the
classes I noted earlier.   I just don't how support for these classes would
fit within an orchestration other than the approach you have suggested.  It
appears that it would be much more difficult to do this within an
orchestration than it is from just a simple web service client. Thanks
again.

"Yossi Dahan" <yossidahan@hotmail.com> wrote in message
news:ezH0lkrWFHA.132@TK2MSFTNGP14.phx.gbl...
> Paul hi,
>
> I am not familiar with the async approach for web services you've
mentioned,
> but one option that comes into my mind is to consume the web service from
> the orchestration as a one way call.
> Then publish the schema of the async result you're expecting as a web
> service from BizTalk to which the client will eventually call
> asynchronously.
>
> You can then use correlation to bring that message back into your
> orchestration.
>
> I hope this makes sense
>
> Yossi Dahan
>
> "Paul J. Lay" <pjlay@msn.com> wrote in message
> news:%23ipSOAmWFHA.1148@tk2msftngp13.phx.gbl... 
asynchronous[vbcol=seagreen] 
Web[vbcol=seagreen] 
>
>







[ Post a follow-up to this message ]



    Re: Consuming a Web Service Asynchronously  
WenJun Zhang[msft]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-17-05 12:47 PM

Hi Paul,

From my point of view, you needn't worry about the long-executing
because BizTalk is just designed for this kind of asynchronous
business processing scenarios. Just use a SOAP "solicit-response" to
send the request and wait for the response. Then the workflow will
become pending on the receive, which is still acceptable even if it's
a several days or weeks long process. So you can just think this is
an "asynchronously web service call" from client-side. However due to
the built-in performance tuning feature of BizTalk engine, the long
suspended orchestration instance may be moved out from memory and get
into "dehydrated" state. For this kind of cases, you need a prior
configured correlation set to let the message subscriber engine know
when a response message is finally received which dehydrated instance
has to be actived to process it.

For your reference, the following articles should highlight some
valuable points of this topic, especially the sections like:
"Compensation enables long-running transactions (LRTs) to be
managed..."

Build Better Business Processes with Web Services in BizTalk Server
2004
http://msdn.microsoft.com/msdnmag/i...WS/default.aspx

BizTalk Server 2004 Convoy Deep Dive
http://msdn.microsoft.com/library/d...ary/en-us/BTS_2
004WP/html/956fd4cb-aacc-43ee-99b6-f6137a5a2914.asp

Please update here if you have any further questions. Thanks.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no
rights.






[ Post a follow-up to this message ]



    Re: Consuming a Web Service Asynchronously  
Jon Flanders[MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-17-05 10:50 PM

WenJun hits it the nail here - the orchestration will implicitally wait for
the message to come back to teh webservice.

If you want to do processing inbetween the send and the receive - put other
shapes inbetween.

--
Jon Flanders
http://www.masteringbiztalk.com/blogs/jon/

""WenJun Zhang[msft]"" <v-wzhang@online.microsoft.com> wrote in message
news:W0YsDktWFHA.388@TK2MSFTNGXA01.phx.gbl...
> Hi Paul,
>
> From my point of view, you needn't worry about the long-executing
> because BizTalk is just designed for this kind of asynchronous
> business processing scenarios. Just use a SOAP "solicit-response" to
> send the request and wait for the response. Then the workflow will
> become pending on the receive, which is still acceptable even if it's
> a several days or weeks long process. So you can just think this is
> an "asynchronously web service call" from client-side. However due to
> the built-in performance tuning feature of BizTalk engine, the long
> suspended orchestration instance may be moved out from memory and get
> into "dehydrated" state. For this kind of cases, you need a prior
> configured correlation set to let the message subscriber engine know
> when a response message is finally received which dehydrated instance
> has to be actived to process it.
>
> For your reference, the following articles should highlight some
> valuable points of this topic, especially the sections like:
> "Compensation enables long-running transactions (LRTs) to be
> managed..."
>
> Build Better Business Processes with Web Services in BizTalk Server
> 2004
> http://msdn.microsoft.com/msdnmag/i...WS/default.aspx
>
> BizTalk Server 2004 Convoy Deep Dive
> http://msdn.microsoft.com/library/d...ary/en-us/BTS_2
> 004WP/html/956fd4cb-aacc-43ee-99b6-f6137a5a2914.asp
>
> Please update here if you have any further questions. Thanks.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Partner Support
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>







[ Post a follow-up to this message ]



    Re: Consuming a Web Service Asynchronously  
WenJun Zhang[msft]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-18-05 12:51 PM

Hi Paul,

Again, long processing web service is acceptable in BizTalk. However
if you prefer manually implement the asynchronous call with .net
AsyncCallback in your own code, you can then use BizTalk messaging
APIs to submit the returned XML document to BizTalk (i.e build a
custom receive adapter). Please refer to the SubmitDirect SDK sample.
It's also not different for you.

SubmitDirect (BizTalk Server Sample)
http://msdn.microsoft.com/library/d...ary/en-us/sdk/h
tm/ebiz_sdk_samples_bgip.asp

Let me know if you have any further questions. Thanks.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no
rights.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:44 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register