Forum Replies Created
-
AuthorPosts
-
Hi,
Here are a couple of blogs you can read about information on security in the BizTalk ESB Toolkit:
http://www.preetham-reddy.com/2009/08/removing-encryption-certificates-in.html
I hope these help,
Daniel.
I know this was a tough one. We finally had our consultant log in. Even after that, it took him 3 hours to find it. Someone or something (as in a process) had modified our machine.config file. It removed the reference to one of the database we use with a .NET assembly. It worked when the map was “tested” but not when it was executed – a strange one indeed…
August 13, 2010 at 9:57 AM in reply to: what is load testing in biztalk and how to perform load testing using Bizunit?? #25631Hi,
See the following MSDN article for more information:
http://msdn.microsoft.com/en-us/library/ee377052(BTS.10).aspx
Daniel.
August 13, 2010 at 9:54 AM in reply to: Integration of Microsoft BizTalk with Microsoft navison #25630Hi Ram,
See the following links for more information on how to do such an integration:
http://blogs.msdn.com/b/marcmonp/archive/2005/02/17/375669.aspx
http://www.rmiusa.com/PDFs/Navision_TechnologyFramework.pdf
Daniel.
August 13, 2010 at 9:30 AM in reply to: Double calling of Web Service in Active-Active Clustering of BizTalk 2006 R2 #25629Hi Aik,
Please see the following BizTalkGurus thread discussion, in particular the post by user tomasr:
http://www.biztalkgurus.com/forums/p/1696/2735.aspx
Daniel.
Hi Piet,
Have you looked at the commercial offerings by Attunity? Here are a couple of links you can check out:
http://www.attunity.com/adapters_for_biztalk_server
http://www.attunity.com/tuxedo_adapter
I’m not sure if that’s what you are looking for to re-architect your data exchange processes, but it’s worth taking a look.
Daniel.
Hi,
Did you build your XPath manually? If so – next time you can open your schema, point on a desired field, and in property window – copy the exact XPath.
Another approach – is using external assembly for assigning data to messages (used usuaully with XmlDocument help variable, string for XPath, and object for value.)
Hi Daniel.
Unfortunately the field is not a promoted protery, so I have to use XPath. It tried to fill an attribute called “Mandant” in the node “customer”. But I always get the xml file without the attribute. It is just the “customer” in the xml file without the attribute field called “Mandant”. One more thing, I use two different namespaces.
Here is the XPath I use – perhaps you can see if I have the wrong syntax:
xpath(Response2Billing,(“string(/*[local-name()=’ResponseMM’ and namespace-uri()=’http://www.company.org/billing/ResponseMMEnvelope’%5D/*%5Blocal-name()=’Customer’ and namespace-uri()=’http://www.company.org/billing/ResponseMM’%5D/@*%5Blocal-name()=’Mandant’ and namespace-uri()=”]) = Mandant”));
Thanks a lot.
Wolfgang
Or I will have to use concatenation and force the parameter to return string. Thats my workaround. XSLT is the next possible way of doing this. I will compare boths methods.
Unfortunately you have hit one of the constraints of using the mapper. All parameters passed to scripting functoids are wrapped in the xpath string() function. There is no way I know of, to change this behaviour.
The only solution is to use to custom Xslt.
There is no right answer here.
I would tend to reserve the disassembler for a more generic purpose e.g. parsing any Excel file, possibly generating a separate message for each page?In your instance you are pretty much hardcoding the conversion for a single document format so I would use the decode stage.
Hi Greg
Thanks for the reply will go test it out now.
But what is the correct way in doing it in the Decode or Disassemble?
In the Execute method you do not have to create a new message. You can just modify the data stream:
public IBaseMessage Execute(IPipelineContext Context, IBaseMessage inMsg)
{
Stream originalStream = inMsg.BodyPart.GetOriginalDataStream();
Customers customers = GetCustomers(fileName, originalStream);
MemoryStream memoryStream = new MemoryStream();
XmlSerializer xs = new XmlSerializer(typeof(Customers));
XmlTextWriter xmlTextWriter = new XmlTextWriter(memoryStream, Encoding.UTF8);
xs.Serialize(xmlTextWriter, customers);
memoryStream.Seek(0, SeekOrigin.Begin); return InMsg;
}You need to use an extension Xml file to specify the external assembly:
I created this assembly:
namespace Map.ExternalAssembly
{
public class Functions
{
public static string GetValue(string value)
{
return value;
}
}
}Create an Xml file called mapextensions.xml:
<ExtensionObjects>
<ExtensionObject Namespace=“urn:external:assembly:functions“ AssemblyName=“Map.ExternalAssembly, Map.ExternalAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8c009a5582cccc7e“ ClassName=“Map.ExternalAssembly.Functions“ />
</ExtensionObjects>
In your map click on the grid and set Custom Extension XML property to point at this xml file.Then in your Xslt template code:
<xsl:template name=”MyTemplate” xmlns:Functions=”urn:external:assembly:functions”>
<xsl:element name=”ModifiedOutput”>
<xs:value-of select=”Functions:GetValue(/some/xpath)” />
</xsl:element>
</xsl:template>The namespace prefix Functions is used to establish the namespace “urn:external:assembly:functions” which is used to find the class from the extensions xml file. You can chose your own prefix and namespace as long as the namespace matchs between the xslt and the extension xml file.
Thanks, Greg
That exactly what I’m looking for. How I can call external assmebly from my xslt template?
-
AuthorPosts