locked
asmx web service and wcf client RRS feed

  • Question

  • hi all,
    i am 2 hr old in biztalk server....
    i have a task  in whic i need to make a wcf client talk to a .net1.1 asmx webservice via biztalk server.
    can some body pleaseee provide mie as to how this can be achived.

    any help is welcome
     thanks in advance

    cheers abhi
    Thanks and Regards Abhi
    Thursday, January 14, 2010 8:42 AM

Answers

  • Hi,

    Tariq's info shows how you can call the .ASMX webservice from within BizTalk. I would like to add that for a WCF client to be able to call into BizTalk you need to either expose a messaging endpoint as a WCF service or expose an orchestration as a WCF service. The binding for this WCF service should be a binding that the client is capable of calling (like BasicHttp, WSHttp, etc). BizTalk comes with a wizard that allows you to generate a WCF service.

    Also make sure BizTalk between the client and the server is a valid choice here. Depending on your requirements it might be possible and better to directly call the ASMX service directly. If you need for example transformation, monitoring, retries, etc. BizTalk is a valid choice.


    HTH,

    Randal van Splunteren - MVP, MCTS BizTalk Server
    http://biztalkmessages.vansplunteren.net

    Please mark as answered if this answers your question.

    Check out the PowerShell provider for BizTalk: http://psbiztalk.codeplex.com
    • Proposed as answer by eliasen Friday, January 15, 2010 10:08 AM
    • Marked as answer by Matchstick man Wednesday, January 20, 2010 6:45 AM
    Friday, January 15, 2010 10:01 AM
    Moderator
  • Hi,

    Please see the link http://blogs.digitaldeposit.net/saravana/post/2007/05/31/BizTalk-2006-R2-consume-an-ASMX-webservice-using-WCF-BasicHttp-adapter.aspx for sample of consume an .ASMX webservice using WCF-BasicHttp adapter.

    Regards,

    Tariq Majeed

    Please mark it as answer if it helps
    • Marked as answer by Matchstick man Wednesday, January 20, 2010 6:45 AM
    Thursday, January 14, 2010 11:08 AM
  • Hi,

    You probably mean ESB (instead of EBS)?. If you run on BizTalk server 2009 you can use the ESB 2.0 toolkit on top of it. For your scenario you will need to define/design:

    - an on-ramp on which your message will enter the bus (in your case a WCF on-ramp)
    - an off-ramp on which your messages will leave the bus (in your case a .ASMX endpoint)
    - an itinerary which contains the path your message will take on the bus.

    Optionally you might need things like transformation services to transform the message in a format suitable for the .asmx endpoint.

    For more information on the ESB toolkit see: http://msdn.microsoft.com/en-us/library/ee236726(BTS.10).aspx
    There is also a forum on this topic where you can post questions related to ESB toolkit: http://social.msdn.microsoft.com/Forums/en-US/biztalkesb/threads

    Finally I would like to ask why you need to use ESB? I would suggest to base the decision whether or not to use an ESB on the requirements and not becuase your told to do so. I'm not sure about your specific scenario of course.




    HTH,

    Randal van Splunteren - MVP, MCTS BizTalk Server
    http://biztalkmessages.vansplunteren.net

    Please mark as answered if this answers your question.

    Check out the PowerShell provider for BizTalk: http://psbiztalk.codeplex.com
    • Marked as answer by Matchstick man Wednesday, January 20, 2010 11:40 AM
    Wednesday, January 20, 2010 10:25 AM
    Moderator

All replies

  • Hi,

    Please see the link http://blogs.digitaldeposit.net/saravana/post/2007/05/31/BizTalk-2006-R2-consume-an-ASMX-webservice-using-WCF-BasicHttp-adapter.aspx for sample of consume an .ASMX webservice using WCF-BasicHttp adapter.

    Regards,

    Tariq Majeed

    Please mark it as answer if it helps
    • Marked as answer by Matchstick man Wednesday, January 20, 2010 6:45 AM
    Thursday, January 14, 2010 11:08 AM
  • Hi,

    Tariq's info shows how you can call the .ASMX webservice from within BizTalk. I would like to add that for a WCF client to be able to call into BizTalk you need to either expose a messaging endpoint as a WCF service or expose an orchestration as a WCF service. The binding for this WCF service should be a binding that the client is capable of calling (like BasicHttp, WSHttp, etc). BizTalk comes with a wizard that allows you to generate a WCF service.

    Also make sure BizTalk between the client and the server is a valid choice here. Depending on your requirements it might be possible and better to directly call the ASMX service directly. If you need for example transformation, monitoring, retries, etc. BizTalk is a valid choice.


    HTH,

    Randal van Splunteren - MVP, MCTS BizTalk Server
    http://biztalkmessages.vansplunteren.net

    Please mark as answered if this answers your question.

    Check out the PowerShell provider for BizTalk: http://psbiztalk.codeplex.com
    • Proposed as answer by eliasen Friday, January 15, 2010 10:08 AM
    • Marked as answer by Matchstick man Wednesday, January 20, 2010 6:45 AM
    Friday, January 15, 2010 10:01 AM
    Moderator
  • Hi  Randal (if i may call u so),
    Thanks 4 the reply that really helped a lot. i have a a new twist for u, i have to use an EBS in the above mentioned scenario. How can i do that and what are the changes that i would have to make. One last request can u provide me an example of how can i use the wizard.

    Thanks a ton Sir

    cheers abhi


    Thanks and Regards Abhi
    Wednesday, January 20, 2010 6:58 AM
  • Hi,

    You probably mean ESB (instead of EBS)?. If you run on BizTalk server 2009 you can use the ESB 2.0 toolkit on top of it. For your scenario you will need to define/design:

    - an on-ramp on which your message will enter the bus (in your case a WCF on-ramp)
    - an off-ramp on which your messages will leave the bus (in your case a .ASMX endpoint)
    - an itinerary which contains the path your message will take on the bus.

    Optionally you might need things like transformation services to transform the message in a format suitable for the .asmx endpoint.

    For more information on the ESB toolkit see: http://msdn.microsoft.com/en-us/library/ee236726(BTS.10).aspx
    There is also a forum on this topic where you can post questions related to ESB toolkit: http://social.msdn.microsoft.com/Forums/en-US/biztalkesb/threads

    Finally I would like to ask why you need to use ESB? I would suggest to base the decision whether or not to use an ESB on the requirements and not becuase your told to do so. I'm not sure about your specific scenario of course.




    HTH,

    Randal van Splunteren - MVP, MCTS BizTalk Server
    http://biztalkmessages.vansplunteren.net

    Please mark as answered if this answers your question.

    Check out the PowerShell provider for BizTalk: http://psbiztalk.codeplex.com
    • Marked as answer by Matchstick man Wednesday, January 20, 2010 11:40 AM
    Wednesday, January 20, 2010 10:25 AM
    Moderator
  • Hi Rnadal,

    We have a pool of Ws which are in .NET1.1 and now the business is proposing to use WCF clients to consume these web services and in the near future he can also use other clients. Based in the request the client can call any of the WS.

    We are planning to use the ESB and soap format  to channel the request from the client to the WS.

    it would be really helpful if you can provide link to a step-step  example of using a ESB

    Thanks a lot 4 ur help sir
    Cheers Abhi


    Thanks and Regards Abhi
    Wednesday, January 20, 2010 11:47 AM
  • Hi,

    The best thing would be to look at the videos mentioned here: http://msdn.microsoft.com/en-us/biztalk/dd876606.aspx

    Other resource is reading the documentation. See bottom text of blog post here: http://www.quicklearn.com/blog/post/Getting-up-and-Running-with-BizTalk-ESB-Toolkit-20.aspx

    After reading and watching you will have a good idea of how to solve and implement things in ESB Toolkit.


    HTH,

    Randal van Splunteren - MVP, MCTS BizTalk Server
    http://biztalkmessages.vansplunteren.net

    Please mark as answered if this answers your question.

    Check out the PowerShell provider for BizTalk: http://psbiztalk.codeplex.com
    Wednesday, January 20, 2010 1:02 PM
    Moderator
  • spam
    • Edited by sudarshans1 Sunday, January 31, 2010 4:17 AM spam
    Thursday, January 21, 2010 5:15 AM