Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

BizTalk 2010 Recipes : Adapters - Configuring SOAP Sends and Receives

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
4/30/2011 4:42:12 PM

1. Problem

You want to understand how to configure a static request/response SOAP send port using BizTalk Explorer to allow client machines posting to orchestrations that have been deployed as web services.

2. Solution

SOAP ports are generally two-way (solicit-response) ports, because consuming web services generally result in a response to the calling party. The following steps guide you through the process of configuring a two-way SOAP port:

  1. In BizTalk Administration Console, right-click the Send Ports folder, and select New→Static Solicit-Response Send Port.

  2. On the Property Pages dialog box that opens, select a transport type of SOAP.

  3. Click the ellipsis for the Address (URI) property entry box. The Transport Properties dialog box will open with the General tab active.

  4. Configure the General tab according to the requirements of the web service, with the following guidelines. See Figure 1.

    1. The value of the Web Service URL property should be entered in the format http://webservice.asmx.

    2. The four authentication types are Anonymous, Basic, Digest, and NTLM. The value selected for this property will depend on the requirements of the web service being consumed. Often, it will take some experimentation to determine the proper authentication settings, especially when additional security measures, such as certificates, are required.

    3. If a web service requires an SSL certificate, enter a reference to it in the Certificate Thumbprint property. You can access the thumbprint through the certificate properties and copy and paste it into this property.

    Figure 1. Configuring the General tab
  5. Configure the proxy settings on the Proxy tab according to any proxies that may be necessary to call the web service.

  6. Configure the Web Service tab using the following guidelines:

    1. Generally, all calls to web services should be handled through the orchestration web port; this provides the robust capabilities for posting over the supported protocols inherent to SOAP.

    2. Occasionally, it may be necessary to specify a proxy class for a call to a web service. In such cases, a proxy class must be created. You can create a class using the command-line utility WSDL.exe. This tool will create an assembly that can be referenced using the Assembly Name property. Once referenced, the type and methods available on the original web service will be made available in the two remaining property fields.

  7. Click OK to save the settings entered in the Transport Properties dialog box, and configure the remaining properties on the SOAP send adapter:

    1. Set the Send and Receive Pipelines settings according to the needs of the solution (generally XMLTransmit and XMLReceive).

    2. If a certificate is required for outbound encryption, set the Certificate Name property to the appropriate certificate. Only those certificates that have been installed on the machine will be available in the drop-down list.

    3. Set any inbound or outbound maps, and configure any filters that may be necessary.

  8. Click OK to complete the configuration of the SOAP port.

3. How It Works

When calling a web service from an orchestration, it is often useful to be able to specify a dynamic URL. For instance, in a development environment, the URL being posted to will be a test URL, and the URL will need to change once the orchestration has been deployed to a production setting. You have several approaches to solving the need for supporting a dynamic URL, one of which is to set the address programmatically in an orchestration Expression shape.

One way to have a dynamic URL is to store the URL can be stored in a configuration file. Assuming that the BTSNTSvc.exe.config file is used to store a custom property, you can take the following steps:

  1. In the BTNTSvc.exe.config file, add a new key as follows (add this to the <appSettings> node):

    [<appSettings>]
    <add key="WSURL" value="http://sample.asmx"/>
    [</appSettings>]

  2. Drop an Expression shape on the orchestration. You can enter the following code in the orchestration to read the configuration file and to set the address on the web port created in the previous steps:

    strURL = System.Configuration.ConfigurationSettings.AppSettings.Get("WSURL");
    Port_1(Microsoft.XLANGs.BaseTypes.Address) = strURL;

Other -----------------
- Windows Server 2008 R2 : Windows Media Services - Using Other Windows Media Encoder Options
- Windows Server 2008 R2 : Windows Media Services - Capturing Audio or Video for Future Playback
- BizTalk 2010 Recipes : Adapters - Configuring HTTP Receives
- BizTalk 2010 Recipes : Adapters - Configuring HTTP Sends
- Windows Server 2003 : Securing Network Communications Using IPSec - Troubleshooting Data Transmission Security
- Windows Server 2003 : Securing Network Communications Using IPSec - Deploying IPSec
- Transitioning from Exchange Server 2003 to Exchange Server 2010 (part 3) - Cleaning Up the Exchange Server 2003 and Exchange Server 2003 Environments
- Transitioning from Exchange Server 2003 to Exchange Server 2010 (part 2)
- Transitioning from Exchange Server 2003 to Exchange Server 2010 (part 1)
- BizTalk 2010 Recipes : Adapters - Receiving Messages with the SQL Adapter
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server