none
How to consume a wcf service in Biztalk RRS feed

  • Question

  •  

     

    hi ,

    I have a simple WCF service that returns the result of a simple addition a + b

    to add adapter schemas and BizTalk types to my BizTalk projects.  I used the BizTalk WCF Service Consuming Wizard that enables  to add WCF send adapters to a BizTalk project.

     At this stage I block , I do not know what I should do to run my service through biztalk

    please any idea ??

    the Ports , messages and types of mesages have been created automatically I do not know how to use them


    • Edited by emma27 Thursday, September 22, 2011 10:41 AM
    Thursday, September 22, 2011 10:31 AM

Answers

  • Hi,

    When consume a (WCF)-Service through generated items then Consume WCF-Service (going through some steps) a number of files are generated including three different XSD schemas. These schemas describe the data types contained in the service contract. You also get two BizTalk binding files: one for the adapter type used in the metadata request and another we can optionally use to configure a WCF-Custom send port. In addition, the wizard emits a new orchestration, which contains type definitions for multi-part messages representing the contract schemas, and, a port type that reflects the message exchange pattern of the target service. You can use these messages, and create an instance through message construct and with message assign you can assign values to parameters (see for example this post I wrote consuming SF service).

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    Thursday, September 22, 2011 5:08 PM
    Moderator
  • Hi,

    I suggest you to go through the following link.

     http://msdn.microsoft.com/en-us/library/bb973215.aspx

    http://www.youtube.com/watch?v=mI-NOwcSnmk

    It gives the Step by step procedure to solving it.

     

    Regards,
    Rajasekhar.R
    -----------------------------------------------------
    Mark As Answer or Vote As Helpful if this helps.


    Wednesday, September 28, 2011 3:55 AM

All replies

  • Hi, You basically have to create the request message in biztalk and then send it using the send port and get the response message back. For detailed info, go through this article on msdn
    Regards,
    Bali
    MCTS: BizTalk Server 2010,BizTalk Server 2006 and WCF
    Blog: http://dpsbali-biztalkweblog.blogspot.com
    -----------------------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    Thursday, September 22, 2011 10:55 AM
  • i dont know how to test my service 
    Thursday, September 22, 2011 11:02 AM
  • Look at the WCF Test Client to test your service.
    Regards,
    Bali
    MCTS: BizTalk Server 2010,BizTalk Server 2006 and WCF
    Blog: http://dpsbali-biztalkweblog.blogspot.com
    -----------------------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    Thursday, September 22, 2011 11:26 AM
  • Hi,

    I suggest you look into this post by Richard. It is part of complete series you can usefull for you to.

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    • Proposed as answer by Rajasekhar.R Thursday, September 29, 2011 12:19 PM
    Thursday, September 22, 2011 11:27 AM
    Moderator
  • thank you for your help

     but the problem is that I have not understand how and where I can put arguments and retrieve my result

    Thursday, September 22, 2011 3:39 PM
  • Hi,

    When consume a (WCF)-Service through generated items then Consume WCF-Service (going through some steps) a number of files are generated including three different XSD schemas. These schemas describe the data types contained in the service contract. You also get two BizTalk binding files: one for the adapter type used in the metadata request and another we can optionally use to configure a WCF-Custom send port. In addition, the wizard emits a new orchestration, which contains type definitions for multi-part messages representing the contract schemas, and, a port type that reflects the message exchange pattern of the target service. You can use these messages, and create an instance through message construct and with message assign you can assign values to parameters (see for example this post I wrote consuming SF service).

    HTH

    Regards,

    Steef-Jan Wiggers
    MVP & MCTS BizTalk Server 2010
    http://soa-thoughts.blogspot.com/
    If this answers your question please mark it accordingly


    BizTalk
    Thursday, September 22, 2011 5:08 PM
    Moderator
  • Hi,

    I suggest you to go through the following link.

     http://msdn.microsoft.com/en-us/library/bb973215.aspx

    http://www.youtube.com/watch?v=mI-NOwcSnmk

    It gives the Step by step procedure to solving it.

     

    Regards,
    Rajasekhar.R
    -----------------------------------------------------
    Mark As Answer or Vote As Helpful if this helps.


    Wednesday, September 28, 2011 3:55 AM