community-content

Forum Replies Created

Viewing 15 posts - 4,306 through 4,320 (of 9,648 total)
  • Author
    Posts
  • in reply to: Receive location and remote web service #20039

    How about the extra license cost to install the Biztalk code on the remote server.
    Having a separate deployment operation to install the remote web service
    Ensuring the remote server has access to the Biztalk SQL databases

    What is the upside

    in reply to: Help with speeding up xslt #20038

    The issue here is the having to rescan the document twice per call to this template, which is called for every invoice in the original file.

    Using real Xslt you would pass the template an invoice node and the template would work within that node.

    so your actual Xslt would look like this:

        …
        <xsl:for-each select=“Invoice“>
            <
    xsl:call-template name=“MapText“>
                <
    xsl:param name=“Invoice“ select=“.“/>
            </
    xsl:call-template>
        </
    xsl:for-each>
    <
    xsl:template>
    <
    xsl:template name=“MapText“>
    <
    xsl:param name=“Invoice“ />
       ….
    <xsl:template>

    The problem is the Biztalk Mapper only allows

    you to pass a string to a Xslt Call template.

     

     

    A trick I have used is to create a Xslt Call Template, but do not connect it to anything
    Then use an Inline Xslt scripting functoid to call the Xslt template.

    You inline Xslt functoid would contain this Xslt:

    <xsl:call-template name=”MapText”>
       <xsl:param name=”Invoice” select=”.”/>
    </xsl:call-template>

    And the output of this functoid connects to the FreeText/Text node on the destination schema.

    Your Xslt Call Template would contain this xslt., or similar

    <xsl:template name=“MapText“>
    <
    xsl:param name=“Invoice“ />
    <!–
    HeaderText –>
    <
    xsl:if test=“$Invoice/Header/HeadText“>
    <
    FTValueParameter>
    <
    xsl:attribute name=“name“>HEAD</xsl:attribute>
    <
    xsl:attribute name=“value“>
    <
    xsl:value-of select=“$Invoice/Header/HeadText“/>
    </xsl:attribute>
    </
    FTValueParameter>
    </
    xsl:if>
    <!–
    HeaderFreeText –>
    <
    xsl:for-each select=“$Invoice/Header/HeaderFreeText“>
    <FTValueParameter>
    <
    xsl:attribute name=“name“>HEAD<xsl:value-of select=“Id“/>
    </
    xsl:attribute>
    <
    xsl:attribute name=“value“>
    <
    xsl:value-of select=“Text“/>
    </
    xsl:attribute>
    </
    FTValueParameter>
    </
    xsl:for-each>
    <!–
    FooterText –>
    <
    xsl:if test=“$Invoice/Header/FootText“>
    <
    FTValueParameter>
    <
    xsl:attribute name=“name“>FOOT</xsl:attribute>
    <
    xsl:attribute name=“value“>
    <
    xsl:value-of select=“$Invoice/Header/FootText“/>
    </
    xsl:attribute>
    </
    FTValueParameter>
    </
    xsl:if>
    <!–
    FooterFreeText –>
    <
    xsl:for-each select=“$Invoice/Header/FooterFreeText“>
    <
    FTValueParameter>
    <
    xsl:attribute name=“name“>FOOT<xsl:value-of select=“Id“/>
    </
    xsl:attribute>
    <
    xsl:attribute name=“value“>
    <
    xsl:value-of select=“Text“/>
    </
    xsl:attribute>
    </
    FTValueParameter>
    </
    xsl:for-each>
    </
    xsl:template>

    There are many variables that come into play when attempting this patterm, using the Test Map and Validate Map to inpect the resulting Xslt from the mapper compilation is always a good idea. Some times you need to add the surrounding nodes like FreeText and Text to your template and adjust the location the Inline Xslt functoid maps to.

    If this gets too hard I resort to using custom Xslt. Use the Validate Map to produce the Xslt, save this file and add to your project, configure the map’s custom Xslt property to point to this xslt file. 

    in reply to: Many to one mapping #20037

    Can u Send the Input and expected output schema sample.

    in reply to: Biz Talk POP3 adapter has connection issues #20034

    Some adapters will only operate as a single instance, e.g. Ftp adapter, POP3 adapter, However for other adapters WCF, SOAP, etc having multiple instances is a good idea, so your load-balanced architecture is still valid.

    The recommended failover for the single instance adapters is to use Cluster Services and have the adapter host instance configurated as active/passive and let cluster services manage which instance is up and running. Without cluster services you could create an active/passive scenario but the failover would either be manual or you could create your own scripts

    in reply to: Declare array in "Message assignment" #20033

     You got it.  You can just create a C# class library project and add a class to it.  Define a method on the class that takes an int and returns an int array.  Then, add a reference from the BizTalk project to the class library, and call the method in the orchestration to initialize the array:  Example:

    public static class IntHelper

    {

       public static int[] IntToIntArray(int number)

       {

          return new int[] { number };

       }

    }

    Then call it from BizTalk like:

    Msg_Request.DebiteringsunderlagsId = ItHelper.IntToIntArray(Msg_Teledatabasen_XML.DebiteringsunderlagsId.int);

    in reply to: Business Rule Composer: Can "Actions" call "Policies"? #20032

     Take a look at the Microsoft code samples for BizTalk 2006 (http://msdn.microsoft.com/en-us/biztalk/bb608375.aspx) and notice the “Policy Chaining” one.

    in reply to: Declare array in "Message assignment" #20031

    I like your idea about write a helper class that returns an int array.
    How can I do that And what is a Helper class?
    You mean something like Msg_Request.DebiteringsunderlagsId = returnIntArray(Msg_Teledatabasen_XML.DebiteringsunderlagsId.int); and returnIntArray returns an array?
    I appriciate that you having patience.

    in reply to: Declare array in "Message assignment" #20030

    Correct, I am using the SOAP adapter.
    The problem is that the web method takes int[], But I will never pass an array of int. I always will pass an int variable to web method.

    So it is not possible to pass int to int[]. I cannot convert it or something else?

    in reply to: Declare array in "Message assignment" #20029

     Here’s another idea:  You could write a helper class that returns an int array, and just call it to initialize the array in your message.  This might get around the inability to declare an array variable in BizTalk.

    in reply to: Declare array in "Message assignment" #20028

    It looks like you are using the SOAP adapter and have added a web reference to the web service?  It also looks like the web reference generated a multipart message type to pass to the web service, and one of the parts is an int array?  This is problematic in BizTalk because you can’t declare an array variable as far as I know.  In my opinion, the best practice here would be to use the WCF adapter if you are on R2 or the WSE adapter if you are on R1.  Both of these adapters will make your life easier than using the SOAP adapter, and the publishing wizards generate XML schemas, rather than multipart messages with array types.  You might also want to check out this sample of cosuming web services with array parameters:  http://www.biztalk247.com/v1/ContentTransformer.aspx?tag=89008B82-A30B-11DB-ABBB-5A8255D89593.  I think it uses the SOAP adapter.

    in reply to: Declare array in "Message assignment" #20027

    Ok, I added a .FieldName on the end of Msg_Teledatabasen_XML.DebiteringsunderlagsId so it became

    Msg_Request.DebiteringsunderlagsId = Msg_Teledatabasen_XML.DebiteringsunderlagsId.int;

    also tried with

    Msg_Request.DebiteringsunderlagsId = Msg_Teledatabasen_XML.DebiteringsunderlagsId.int[];

    in reply to: Declare array in "Message assignment" #20026

    Russel, thanks for trying to help me, I appriciate it very much.

    You are correct that the data type does not match.

    Msg_Request.DebiteringsunderlagsId is int[]
    Msg_Teledatabasen_XML.DebiteringsunderlagId is int

    How can I make it match?

    in reply to: Declare array in "Message assignment" #20025

    It looks like you are trying to populate a distinguished field on the web service request message with data from a distinguished field on the inbound message.  It seems the data types don’t match.  What is the type of Msg_Request.DebiteringsunderlagsId?  What is the type of Msg_Teledatabasen_XML.DebiteringsunderlagsId?  Do you need an additional “.FieldName” on the end of Msg_Request.DebiteringsunderlagsId?

    in reply to: Declare array in "Message assignment" #20024

    I want to call the webservice like this by assigning the value from a message assignment and with value that comes in from the xml data.

    Msg_Request.DebiteringsunderlagsId = Msg_Teledatabasen_XML.DebiteringsunderlagsId; <– error “cannot implicity convert type ‘System.Int32’ to ‘GetWSDebiteringsunderlagStatus.Debiteringsunderlag.Reference'”
    Msg_Request.KallaID = Msg_Teledatabasen_XML.KallaID;

    How can I fix this problem. Please

    in reply to: Declare array in "Message assignment" #20023

    You need to generate a schema to represent the web service data format.  You won’t need to declare a .CLR type array because the array will be represented in XML.  If you are on R2, you can use a WCF adapter and the WCF service consuming wizard (the service does not need to be a WCF service).  Here is a link: http://msdn.microsoft.com/en-us/library/bb226552.aspx  If you don’t have R2, then you should use the SOAP or WSE adapter.  Both of these adapters have schema generation wizards as well.

Viewing 15 posts - 4,306 through 4,320 (of 9,648 total)