Forum Replies Created

Viewing 15 posts - 1,876 through 1,890 (of 9,648 total)
  • Author
    Posts
  • in reply to: SSO Problem #23867

    facing the same issue … any luck with you?

    in reply to: XPath Assigment #23865

    The xpath function can only update a single node, it will not update a collection of nodes.

    Solutions
    1. Use a loop in your orchestration and use an indexed xpath e.g.   /GL/LedgerJournalTransTable/LedgerJournalTrans/Company[index]
         This is ugly and slow.

    2. Create a property schema and add a Company property (of type MessageContextPropertyBase)
         Promote your company value into this property on the map source message.
         Create a map and use the ContextAccessor functoid (http://contextaccessor.codeplex.com/) to map this property into the output document.

    in reply to: Order in SAP still locked after Update from Biztalk #23863

    Port is Static Solicit-Response

    in reply to: Order in SAP still locked after Update from Biztalk #23862

    Sorry for the ignorance, but How do I tell if it is dynamic or not?

     

    in reply to: Order in SAP still locked after Update from Biztalk #23861

    Are you using Dyanamic ports to perform the operation ?

    in reply to: Remove record based on data in an inner loop #23858

    Thank you very much 🙂

    Works like a charm.

    /Charles

    Daniel’s reference above refers to performing aynschronous IO within a process. Its aim is to prevent the calling application from blocking on the web service call allowing it to perform other work. This has no effect on the on the web service calls across the network – the web service is still synchronous i.e. the response contains the result of processing the message. You still have the same limitations with regards to timeouts, etc.

    What you need is two web services, one hosted on Biztalk and the other hosted on the calling application. The client calls the Biztalk web service which responds straight away and then begins processing the message. When this message processing has completed Biztalk calls the client web service with the results of this processing. The length of time Biztalk takes to complete processing is limitless.

    This pattern can be acheived using Biztalk 2006. You simply publish a web service from the calling application and consume this from Biztalk. In an orchestration you receive the initial message from the Biztalk web service and respond immediately. After your processing is complete call the calling applications web service with the results. You will need to hard code the return address in a send port. (With the WCF adapter you would be able to use the WS-Addressing header and add a Reply-To address on the Biztalk web service call to make the process slightly more dynamic).

    You will need to ensure the calling application is capable of using this pattern. 

    in reply to: Remove record based on data in an inner loop #23853

    You can use the count function to check for the existence of child nodes with a particular value:

     <xsl:stylesheet xmlns:xsl=”http://www.w3.org/1999/XSL/Transform&#8221; xmlns:msxsl=”urn:schemas-microsoft-com:xslt” xmlns:var=”http://schemas.microsoft.com/BizTalk/2003/var&#8221; exclude-result-prefixes=”msxsl var” version=”1.0″>
    <xsl:output omit-xml-declaration=”yes” method=”xml” version=”1.0″ />
    <xsl:template match=”/”>
    <xsl:apply-templates select=”/root” />
    </xsl:template>
    <xsl:template match=”/root”>
    <xsl:element name=”root”>
    <xsl:element name=”head-value”/>
    <xsl:for-each select=”data-structure1[count(data-structure2/value2[text() = ’27’]) = 0]”>
    <xsl:copy-of select=”.”/>
    </xsl:for-each>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>

    in reply to: Remove record based on data in an inner loop #23852

    Thank You for your answer, obviously I was a bit unclear. If I use your example with a bit less “data-structure1” (see below) but several value2 per “data-structure2” instead:

    <root>
    <head-value/>
    <data-structure1>
    <value1>value</value1>
    <data-structure2>
    <value2>27</value2>
    <value2>28</value2>
    <value2>29</value2>
    </data-structure2>
    </data-structure1>
    <data-structure1>
    <value1>value</value1>
    <data-structure2>
    <value2>30</value2>
    <value2>31</value2>
    <value2>32</value2>
    </data-structure2>
    </data-structure1>
    <data-structure1>
    <value1>value</value1>
    <data-structure2>
    <value2>22</value2>
    <value2>23</value2>
    <value2>27</value2>
    </data-structure2>
    </data-structure1>
    </root>

    In this example I’d like the output to be this if we are to remove all the “data-structure1″s that contains a “data-structure1->data-structure2->value2 = 27:

    <root>
    <head-value/>
    <data-structure1>
    <value1>value</value1>
    <data-structure2>
    <value2>30</value2>
    <value2>31</value2>
    <value2>32</value2>
    </data-structure2>
    </data-structure1>
    </root>

     

    My problem is that there exists “two loops” that need to be taken care of. I’m not set to do this with xslt but it would feel good to be able to do it there.

    Thanks in advance,

    Charles

     

    in reply to: Remove record based on data in an inner loop #23851

    Not sure if I fully understand your problem but here goes:

    With this input file
    <root>
    <head-value/>
    <data-structure1>
    <value1>value</value1>
    <data-structure2>
    <value2>27</value2>
    </data-structure2>
    </data-structure1>
    <data-structure1>
    <value1>value</value1>
    <data-structure2>
    <value2>31</value2>
    </data-structure2>
    </data-structure1>
    <data-structure1>
    <value1>value</value1>
    <data-structure2>
    <value2>31</value2>
    </data-structure2>
    </data-structure1>
    <data-structure1>
    <value1>value</value1>
    <data-structure2>
    <value2>29</value2>
    </data-structure2>
    </data-structure1>
    <data-structure1>
    <value1>value</value1>
    <data-structure2>
    <value2>27</value2>
    </data-structure2>
    </data-structure1>
    </root>

    This Xslt will only map data-structure1 records where value2 is not equal to 27

     <xsl:stylesheet xmlns:xsl=”http://www.w3.org/1999/XSL/Transform&#8221; xmlns:msxsl=”urn:schemas-microsoft-com:xslt” xmlns:var=”http://schemas.microsoft.com/BizTalk/2003/var&#8221; exclude-result-prefixes=”msxsl var” version=”1.0″>
    <xsl:output omit-xml-declaration=”yes” method=”xml” version=”1.0″ />
    <xsl:template match=”/”>
    <xsl:apply-templates select=”/root” />
    </xsl:template>
    <xsl:template match=”/root”>
    <xsl:element name=”root”>
    <xsl:element name=”head-value”/>
    <xsl:for-each select=”data-structure1[data-structure2/value2/text() != ’27’]”>
    <xsl:copy-of select=”.”/>
    </xsl:for-each>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>

     

    Thanks Daniel,

    Yes, it seems that the client would have to do async over sync. I wonder though if I would get a timeout if the call takes more than the 90 seconds or so that is the default timeout value. Probably. And that would not be expected to happen in a real async call. Another alternative would be to implement polling or something.

    I have seen that even in BT 2009 async callbacks are very well hidden and you have to overwrite stuff that the wizard outputs. There’s certainly room for improvement in this area.

    in reply to: Configure an HTTP receive location in IIS 7 for BizTalk 2009 #23848

    SBrown,

    You will have to add an ISAPI filter in IIS7 to recognize .dll files as valid file URLs extensions.

    How to do it?

    You will find it here

    http://msdn.microsoft.com/en-us/library/bb246041(BTS.10).aspx

    in reply to: Biztalk Mapping issue #23847

    Sinto,

    In the Output Map I see CE_O_Idetifier value as “PP”…..I think its a typo error..it will be “RP”.

    Let me know what Outut do you expect. Its nothing to do with Schema properties….its an issue with the Map so something has to fixed in your map to acheive it..

    Hi Johan,

     

       To my knowledge, exposing a schema or orchestration in BizTalk 2006 as an asynchronous web service is not possible. However, in your client application, you can call that web service asynchronously. Check out the following article for such an implementation:

    http://ondotnet.com/pub/a/dotnet/2005/08/01/async_webservices.html

     

       I hope this helps!

     

       Daniel.

     

    in reply to: MQSeries Send Port – Delivery Notification issue #23843

    Hi,

    I’m having a similar problem with a Dynamic SOAP send port. Did you manage to solve your problem?

    I hope you still remember what was the problem and sory about my english.

    Thank you

    Diogo

Viewing 15 posts - 1,876 through 1,890 (of 9,648 total)