locked
consuming web services RRS feed

  • Question

  • how do we consume web service...

    i know how to consume wcf service....

    is consuming web service and consume wcf service is same thing.....or we do somthing different in consuming web services..

    Saturday, August 18, 2012 6:59 PM

Answers

  • To consume a Web service you can use the WCF consuming wizard or the consuming web service wizard.

    The WCF consuming wizard is better and uses the WCF adapter which can be customized  much better in case you need to. The other one uses hte SOAP adapter and has restrictions. I am not sure but I think it is deprecated also but even if it is not yet it will recommended to use the WCF service consuming wizar.

    Note:Add web serference does not help unless you plan to call the service using custom library.

    Saturday, August 18, 2012 8:52 PM

All replies

  • Hello, In Biztalk Project you can consume WCF service (svcutil.exe) and .ASMX Service (wsdl.exe)

    To consuming web service (ASMX Services)- need to add web reference.

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

    To Consume WCF Service  - need to add service reference

    HTH


    please Mark as the Answer, If this answers your question. If this post is helpful, please vote as helpful.

    Saturday, August 18, 2012 7:15 PM
  • i tried to add reference to the 

    free web service for which url is the following http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

    i gave reference using the link you provided i did not get any odx file ...binding file...or anything else...how to get those things

    Saturday, August 18, 2012 8:41 PM
  • To consume a Web service you can use the WCF consuming wizard or the consuming web service wizard.

    The WCF consuming wizard is better and uses the WCF adapter which can be customized  much better in case you need to. The other one uses hte SOAP adapter and has restrictions. I am not sure but I think it is deprecated also but even if it is not yet it will recommended to use the WCF service consuming wizar.

    Note:Add web serference does not help unless you plan to call the service using custom library.

    Saturday, August 18, 2012 8:52 PM
  • Hello, In Biztalk Project you can consume WCF service (svcutil.exe) and .ASMX Service (wsdl.exe)

    To consuming web service (ASMX Services)- need to add web reference.

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

    To Consume WCF Service  - need to add service reference

    HTH


    please Mark as the Answer, If this answers your question. If this post is helpful, please vote as helpful.

    In BizTalk project the procedure is different.

    We have to use the Add... / Add Generated Item / Consume WCF Service wizard.

    Difference is the Add reference creates the .NET Proxy code, Data Contracts, etc.

    The Consume WCF Service creates the schemas (not the Data Contracts), binding (for creating the ports), message and port types in an orchestration.


    Leonid Ganeline [BizTalk MVP] BizTalkien: Naming Conventions for the BizTalk Solutions

    Saturday, August 18, 2012 9:24 PM
    Moderator