Skip to main content

Posts

WCF MaxReceivedMessageSize max value in .config

MaxReceivedMessageSize parameter in binding config   file:   For max file size in WCF, we need to set following parameter in binding files. <binding name="MyService"        maxReceivedMessageSize="2147483647"        maxBufferSize="2147483647" transferMode="Streamed" >        <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"      maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/> <!-- other binding info here, such as security --> </binding> Max possible size: MaxReceivedMessageSize to 2147483647 (i.e. Int32.MaxValue), which is 2GB For our case, as we are using WsHttpBinding. <wsHttpBinding>         <binding name="wsHttpBindingSettings" maxReceivedMessageSize="2147483647">      ...

WCF Config file setting

Metadata publishing Option: Service web.config file has option to publish metadata in <System.ServiceModel> tag < behaviors >       < serviceBehaviors >         < behavior name = " ServiceBehaviorConfiguration " >           < serviceDebug httpHelpPageEnabled = " true " httpsHelpPageEnabled = " false " includeExceptionDetailInFaults = " false " />           < serviceMetadata httpGetEnabled = " true " httpsGetEnabled = " false " />         </ behavior >       </ serviceBehaviors >     </ behaviors > User principal setting for WCF consumer client:   When we consume the WCF service, it will default add the current user credential as User Principal, but we can change that from A...

Difference between Publishing orchestration as wcf service and schema as wcf service

Publishing an orchestration as a WCF Service leads to tight coupling . Whereas publishing schema as a WCF Service achieves loose coupling. When an orchestration is published as a WCF Service, the data (message) received via the WCF Service will be directly bound the Orchestration which is published. On the other hand when a schema is published as a WCF Service, the data (BizTalk message) received via the WCF Service will be published to the BizTalk Server Message Box and hence any number of subscribers can subscribe for the message. When we expose an orchestration as a WCF service, it means we should execute the orchestration by calling the WCF service from client with the parameter message payload same as what the orchestration receive shape expects. The message payload is received by message box first and the subscribing orchestration instance then gets fired and the 'processing' takes place very much similar to what happens inside the method of a WCF service which is ...

Convoy in BizTalk Orchestration

  Convoys are used when you receive related messages from diffirent sources or system and in dirrent order and on different time interval. Using convoys you can start the orchestration process and keep receiving the correlated messages either in parallel or sequentially. Thus there are two kind of convoys are possible. 1- Sequential - When you need to receive messages in predefined order then you need to use Sequential convoy. 2- Parallel - When you can receive the related messages in any order then you need to use parallel convoy.   How they are implemented in BizTalk : You achieve these convoy implementation in Biztalk using BizTalk orchestration. For sequential convoy you need to implement receive in a line and using correlation you need to correlate the next incoming message. For parallel convoy you need to use parallel shape and implement as many receive shapes as required. Again you will relate these messages using correlation.     ...

Looping functoid in BizTalk map

Using Looping functoid in BizTalk Map: 1.       Create two schema, Order schema and MasterOrderSchema with below shown structure. 2.       OrderSchema will have order from multiple companies, using “ LOOPING ” functoid we will map it to MasterOrdeeShema. 3.       We will create a map to achieve   this, in this map we will use Looping functoid (Advanced Functoid Grp). Order Schema MasterOrderSchema Map – OrderSchemaToMasterOrderSchema.btm Now test the map created with input instance Order.xml file < ns0:Order xmlns:ns0 = " http://LoopinFunctoidSoln.OrderSchema " >   < ABCCompany >     < ID > 11 </ ID >     < ItemName > ItemName_0 </ ItemName >     < Qty > 10 </ Qty >   </ ABCCompany >   < PQRCompany >     < ID > 1 </ ID >     < ItemName...

Creating Envelope Schema in BizTalk

1.       Create two schema , contect and PhoneBook(Enevelope Schema) 2.       Here we create a contact schema and which we will use in our envelope schema phonebook. 3.       Set PhoneBook envelope schema poperty to “ Yes ”.Import Contact schema to PhoneBook schema using “Imports ….Ellipse icon”. 4.       CInsert a new child record inside the PhoneBook node and name it as Contact. 5.       Select contact node Data Type property to   “ns0:Contact (Reference)”.

Developin custom Functoid in BizTalk

1) Fine, create a new project its type is class library and name it CustomFunctoid. 2) Add a reference of Microsoft.BizTalk.BaseFunctoids you can find it here : X:\Program Files\Microsoft BizTalk Server 2006\Developer Tools\Microsoft.BizTalk.BaseFunctoids.dll (where X the drive that holds the installation of BizTalk server 2006) 3) let you class implement from BaseFunctoid public class Percentage : BaseFunctoid 4) let the constructor override the base public Percentage(): base() 5) write the following line of code in the construction : this.ID = 3003; SetupResourceAssembl("CustomFunctoid.CustomFunctoidResource", System.Reflection.Assembly.GetExecutingAssembly()); SetName("PERCENTAGE_NAME"); SetTooltip("PERCENTAGE_TOOLTIP"); SetDescription("PERCENTAGE_DESCRIPTION"); SetBitmap("PERCENTAGE_BITMAP"); this.SetMinParams(2); this.SetMaxParams(2); SetExternalFunctionName(GetType().Assembly.FullName, "CustomFunctoid.Percentage...