I using BTS 2013 R2 and VS2013 and i need to consume .asmx service.
Please let me know how to add web refrence for .asmx.
As I can only fine Add Reference, Add Service Reference and Add Adapter Service Reference.
Thanks
Form the BizTalk Project in Solution Explorer:
Add -> Add Generated Items -> Consume WCF Service -> Consume WCF Service
It doesn't matter that the service is .asmx so long as it supports WSDL. The name means that it generates a WCF binding in the BizTalk Project.
- Proposed as answer by Kjetil Tonstad 18 hours 56 minutes ago
Hi,
You can consume an asmx web Service using the Consume WCF Service Wizard. It's the recommended option so you should use the WCF-BasicHttp binding to connect to the Web Service.
Yo have to do the following steps:
- Create a BizTalk Project. Then select the Add Generated Items option
- In the next wizard, select Consume WCF Service
Then select if you want to use the URL or if you have the WSDL and schema files. This will generate the required artifacts to invoke the Service.
Regards.
Hi,
You can go ahead with both ways
Either you can add service reference to the service you want to consume or you can use Add -> Add Generated Items -> Consume WCF Service -> Consume WCF Service with WCF Binding .
For the first approach of adding reference to the service ,steps are listed below .
Consuming a ASMX webservice or WCF service in BizTalk application is very straight forward process. You can either use the SOAP adapter or WCFbasicHttpAdapter.
Steps to consume webservice in BizTalk Orchestration:
1. Add the web reference of the webservice in the BizTalk orchesration project.
2. Construct the web request message using either using Transform(MAP) or Message Assignment.
3. Create the logical web port in the orchestration
4. Send the created Web request message to the Webservice port.
5. Receive the response message from webservice in the orchestration using Receive shape.
Reference :
consuming web services:
http://msdn.microsoft.com/en-us/library/aa577881(v=BTS.10).aspx
http://www.codeproject.com/KB/biztalk/Consume_web_service.aspx
For WCF framework utilization below are the links
http://www.dotnetspider.com/resources/44792-Consuming-WCF-Service-BizTalk-2010-Orchestration.aspx
https://seroter.wordpress.com/biztalk-and-wcf-part-i-operation-patterns/
Thanks
Abhishek
Form the BizTalk Project in Solution Explorer:
Add -> Add Generated Items -> Consume WCF Service -> Consume WCF Service
It doesn't matter that the service is .asmx so long as it supports WSDL. The name means that it generates a WCF binding in the BizTalk Project.
- Proposed as answer by Kjetil Tonstad Thursday, July 02, 2015 12:09 PM
- Marked as answer by BTS User 23 hours 54 minutes ago
Form the BizTalk Project in Solution Explorer:
Add -> Add Generated Items -> Consume WCF Service -> Consume WCF Service
It doesn't matter that the service is .asmx so long as it supports WSDL. The name means that it generates a WCF binding in the BizTalk Project.
- Proposed as answer by Kjetil Tonstad Thursday, July 02, 2015 12:09 PM
- Marked as answer by BTS User Friday, July 03, 2015 7:11 AM
Form the BizTalk Project in Solution Explorer:
Add -> Add Generated Items -> Consume WCF Service -> Consume WCF Service
It doesn't matter that the service is .asmx so long as it supports WSDL. The name means that it generates a WCF binding in the BizTalk Project.
- Proposed as answer by Kjetil Tonstad Thursday, July 02, 2015 12:09 PM
- Marked as answer by BTS User Friday, July 03, 2015 7:11 AM
Form the BizTalk Project in Solution Explorer:
Add -> Add Generated Items -> Consume WCF Service -> Consume WCF Service
It doesn't matter that the service is .asmx so long as it supports WSDL. The name means that it generates a WCF binding in the BizTalk Project.
- Proposed as answer by Kjetil Tonstad Thursday, July 02, 2015 12:09 PM
- Marked as answer by BTS User Friday, July 03, 2015 7:11 AM