Skip to main content

Creating MultiPart MessageTpe in BizTalk

MultiPart Message: is Message with multipart part in it. Example we can have one message input to “Receive Shape” of orchestration and which indeed has multiple message.

Here we have InputMsg as multipart message.It’s Message Type is “MulitpartMsg.MutipartType_1”. Which has three types of message (Num1, Num2, Num3) in it all are defined as type int.The int type is for this sample only you can define it as any DataType or schema.

  

The receive shape (Receive_1) has message “InputMsg” which is of type Multi-Part message types.


Then I published this Orchestration as Web service using “BizTalk Web Publishing Wizard”.The Published WebService when opened in Browser.Shows Multipart-Message as input parameter to method “Operation_1”



Then I have created a test application to test my Webservice. I added web service as web reference to my application & then called method Operation_1 (Num1, Num2, Num3) and passed multipart message parameter value and got the desired output.
//Create an instance of the proxy  
            MultipartMsg_Service_Port_1 wsProxy = new MultipartMsg_Service_Port_1();
            Int32 intSum;
            //Call the numeric operation
            intSum = wsProxy.Operation_1(10, 10, 20);

Comments

Popular posts from this blog

Deploying Custom Pipeline Component on BizTalk Server (PROD)

Deploying Custom Pipeline Component on BizTalk Server: ·         Deploying BizTalk Custom Pipeline Component   on BizTalk Server 2006 or Older Version : To deploy the custom Pipeline component on BizTalk server 2006 or older version. We need to add the Custom Pipeline component in GAC as well as “ C:\Program Files (x86)\Microsoft BizTalk Server 2006\Pipeline Components ” folder.   At design time it will access the Pipeline component dll located in “….. Microsoft   BizTalk Server 2006\Pipeline Components ” folder and show the component in pipeline toolbox. At runtime the BizTalk will use the Custom Pipeline component from GAC. ·         Deploying BizTalk Custom Pipeline Component   on BizTalk Server 2006 R2 or New Version : To deploy the custom Pipeline component on BizTalk server 2006 R2 or later version. We need to add the Custom Pipeline component only in “C:\Pr...

BizTalk WCF : BizTalk System.ServiceModel.AddressAccessDeniedException

BizTalk System.ServiceModel.AddressAccessDeniedException You configure a self-hosted service at a BizTalk receive location using a localhost address, and when you try to enable the service (receive location) you get the above error with the details 'HTTP could not register URL http://+:80/Service.CreateService.FirstService.v1/. Your process does not have access rights to this namespace' I was getting above error when trying to Enable WCF receive location. To overcome this issue, you need to Solution 1. Open the Visual studio command prompt (using the run as administrator option) 2. Type in the command netsh http add urlacl url=http://+:80/<the rest of the address that comes after localhost/> user=DOMAIN\username (So, if your full address ishttp://localhost/company.bookings.carbookingservice, you type inhttp://+:80/company.bookings.carbookingservice) User Name should be same under which your host is running. 3. Enter to run the command 4.  res...

Object Oriented Programming Concepts

OOP Basics Visual Basic was Object-Based, Visual Basic .NET is Object-Oriented , which means that it's a true Object-Oriented Programming Language . Visual Basic .NET supports all the key OOP features like Polymorphism , Inheritance , Abstraction and Encapsulation. It's worth having a brief overview of OOP before starting OOP with VB. Why Object Oriented approach? A major factor in the invention of Object-Oriented approach is to remove some of the flaws encountered with the procedural approach. In OOP, data is treated as a critical element and does not allow it to flow freely. It bounds data closely to the functions that operate on it and protects it from accidental modification from outside functions. OOP allows decomposition of a problem into a number of entities called objects and then builds data and functions around these objects. A major advantage of OOP is code reusability. Some important features of Object Oriented programming are as follows: Emphasis ...