Tag: BizTalk
XPath String Operators and Functions
XPath 1.0 have many string functions:
concat(string string1, string string2, …)— This function returns all strings you pass to it concatenated (that is, joined) together.
contains(string string1, string string2)— This function returns true if the first string contains the second one.
normalize-space(string string1)— This function returns string1 after leading and trailing whitespace is stripped and multiple consecutive whitespace [...]
Posted: August 12th, 2008 under BizTalk.
Tags: BizTalk, xslt
Comments: none
xsl to find whether a string starts with a word in the element
I have a xml sample file generated from the schema.
<ns0:PurchaseOrder xmlns:ns0=”http://yourprojectname.Schemas.PO”>
<PONumber>PONumber_0</PONumber>
<PODate>1999-05-31</PODate>
<POQty>POQty_0</POQty>
<Customer>
<Name1>BiztalkServerGuide</Name1>
</Customer>
</ns0:PurchaseOrder>
now, in order to find a specific string in the element , you need to place the below code in the buffer are of the inline XSLT call template
<xsl:template name=”AnyNameofYourChoice” match=”//*[starts-with(/*[local-name()='PurchaseOrder' and namespace-uri()='http://yourprojectname.Schemas.PO']/*[local-name()='Customer' and namespace-uri()='']/*[local-name()='Name1' and namespace-uri()=''], ‘Biz‘)]”>
<xsl:element name=”startsWithBiz”>
“starts with Biz”
</xsl:element>
</xsl:template>
Thanks
Posted: August 1st, 2008 under BizTalk.
Tags: BizTalk, xsl, xslt
Comments: none
xsl to find a specific string in the element
I have a xml sample file generated from the schema.
<ns0:PurchaseOrder xmlns:ns0=”http://yourprojectname.Schemas.PO”>
<PONumber>PONumber_0</PONumber>
<PODate>1999-05-31</PODate>
<POQty>POQty_0</POQty>
<Customer>
<Name1>BiztalkServerGuide</Name1>
</Customer>
</ns0:PurchaseOrder>
now, in order to find a specific string in the element , you need to place the below code in the buffer are of the inline XSLT call template
<xsl:template name=”AnyNameofYourChoice” match=”//*[contains(/*[local-name()='PurchaseOrder' and namespace-uri()='http://yourprojectname.Schemas.PO']/*[local-name()='Customer' and namespace-uri()='']/*[local-name()='Name1' and namespace-uri()=''], ‘BizTalkServer‘)]”>
<xsl:element name=”containsBiztalkServerGuide”>
“Contains BiztalkServer String”
</xsl:element>
</xsl:template>
Thanks
Posted: July 29th, 2008 under BizTalk.
Tags: BizTalk, call template, mapper, xslt
Comments: none
xsl:template’ cannot be a child of the ‘xsl:template’ element
when you try to add a <xsl:template> element within a <xsl:template> element
<xsl:template>
<xsl:template>
</xsl:template>
</xsl:template>
and try to test the biztalk map, the compiler will throw an error stating xsl:template’ cannot be a child of the ‘xsl:template’ element.
Posted: July 26th, 2008 under BizTalk.
Tags: BizTalk, Map, xsl
Comments: none
Failed message routing in BizTalk Server
If you ever had a chance to route the failed messages, well in biz talk server we can route the failed messages , you can achieve this
By enabling Enable routing for failed messages on the physical receive port sampleReceive,
create a physical send port errorSend which subscribes to the error message, so in the filter properties [...]
Posted: June 26th, 2008 under Uncategorized.
Tags: BizTalk, failed message, routing
Comments: none
Unable to see the Application name in BizTalk Admin Console
Hi,
If you are unable to see the Application in the Admin console after you deploy, the probable reason is that you havent given the Application name in the Application configuration properties.
click on Solution -> properties - >deploy -> Application Name.
If you have deployed your application without the name, the same will be available in the [...]
Posted: March 20th, 2008 under Uncategorized.
Tags: Administration, BizTalk, Deployment
Comments: none
Correlations - Scenarios
Correlation sets cannot be used in the LOOP shape of the Orchestration.(a correlation-set can only be initialized once)
You cannot initialize and follow the same CorrelationSet within 2 different orchestrations.
Correlations are used in Asynchronous scenarios.
you should used self correlating ports in order to correlate the messages between two orchestrations in the project.
I am working on the [...]
Posted: March 17th, 2008 under Uncategorized.
Tags: BizTalk, correlations
Comments: none
Unable to send the response within scope shape for request-response port
It is not possible to send the response within scope shape of the orchestration, via the response port of the request-response port , The BizTalk engine will throw the error “you are trying to send the message without receiving the message”.
workaround:
remove the send shape within the scope shape of the orchestration , and [...]
Posted: March 6th, 2008 under Uncategorized.
Tags: BizTalk, Request Response Port
Comments: none
Getting data from Webservice using Infopath Form
During the weekend I created the exercise of creating a simple web service that gets the details of the employee (Employee code,First Name, Last Name, Designation ,Salary) based on the employee code.
The objective can be achieved by using the wizard or manually
Infopath:
Open Infopath
on the Design a form panel found at the right hand side , [...]
Posted: March 4th, 2008 under Uncategorized.
Tags: BizTalk, Infopath, WebService
Comments: none
How to Optimize Messaging Design
While I was looking for performance optimization in BizTalk Server, I stumbled upon the presentation from Lee Graber who is a Senior developer at Microsoft.Please find the points below.
Don’t make your schema nodes overly descriptive
Larger message schemas and larger message instances reduce performance
Don’t use an xml pipeline (w/ xml assembler) for the send port, [...]
Posted: February 29th, 2008 under Uncategorized.
Tags: BizTalk, Message, Optimation
Comments: none