Main menu:

 

November 2008
M T W T F S S
« Sep    
 12
3456789
10111213141516
17181920212223
24252627282930

Site search

Archives

Categories

Tags

Links:

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 [...]

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

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

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.

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 [...]

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 [...]

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 [...]

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 [...]

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 , [...]

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, [...]