community-content

Forum Replies Created

Viewing 15 posts - 661 through 675 (of 9,648 total)
  • Author
    Posts
  • in reply to: How to fill a field in a schema with a variable? #25614

    Hi Wolfgang,

     

       If that field of the last mapping schema is a promoted property, you can assign it the variable in a Message Assignment shape. If not, you can use an XPath expression on your message to assign the variable to that field in an Expression shape.

     

       Daniel.

     

    in reply to: unable to change orchestration subscriptions #25612

    OK, I made some more tests and here is a small update.

    The exception I mentioned earlier occurs when I change the port binding
    in VS, e.g. from “Specify Later” to “Direct Binding”. It won’t be fired
    when I only change the Filter Expression.

    In the latter case, I can enlist the orchestration but its subscriptions
    won’t be updated, that means the orchestration will continue to
    subscribe to messages that comply to the preceding filter ; as mentioned
    I am 100% sure that the host instance and the GAC are up to date, and
    there is no suspended message.

    I mentioned that I looked to the subscriptions with a specific query, I
    found out that when unenlisting the orchestration, subscriptions stay to
    “stopped”, it won’t be “disabled” nor be deleted. These subscriptions
    problems come up only with orchestrations, the same tests on send ports
    are sucessfull.

    I also tried to deploy my orchestration from dev environment and then
    manage artefacts from staging (distant). Un- and enlisting still didn’t
    update orchestration subscriptions at all.

    Latest thing I tryed was to rename the orchestration (e.g. from “test”
    to “newTest”) ; in that case, subscriptions were updated as expected,
    but only at 1st deployment ; if I change them a second time, the problem
    comes back. And to this : if I re-change it from “newTest” to “test”,
    the “old” orchestration comes back with its old subscription conditions !

    All these tests were made with Admin Console opened and simply refreshed
    (F5) ; when I close and reopen it, everything works all right, except
    that orchestration subsciptions keep their “stopped” state despite
    unenlisting them. This is also true when I manage the artefacts from a
    distant console.

    I have to make clear that I installed the SP1 and the cumulative
    correction packs 1 and 2 in the last weeks, and that is the first time
    that I am “playing” with orchestrations and subscriptions. I didn’t see
    anywhere that VS or the admin console needed to be updated separately,
    maybe I’m missing a fix or another KB article ?

    Next steps will be :
    – reinstall admin console
    – reinstall VS Biztalk add-ins
    – try to deploy my orchestration on my staging environment.

    Any suggestion will be fully appreciated, thanks a lot!

    Thomas

    in reply to: unable to change orchestration subscriptions #25609

    I did many variations with ports. In VS I recreate the locigal ports, changing them from “define later” to “define now” and to “Direct Binding”, I also tried to drop and recreate the porttypes only, but nothing helped. And in the console I verified that the bindings were corrects and I changed them some times.

    in reply to: Mapping #25608

    It may be possible to put inline C# inside an Xslt template but probalbly not worth the hassle.
    1. You can use a custom Xslt file with the mapper and add inline C# as described by Nick Heppleston above.
    2. You can also add a scripting functoid with your C# code that is not connected to anything and call this from your Xslt template functoid.
    3. You can also create an external library and call this from with your Xslt template (need to add an external assembly scripting functoid) You can also call this external assembly in a custom Xslt file by adding an Custom Extensions Xml file to your map definition.

    The easiest way to discover how to do this, is to create a map using various scripting functoids, use the Validate Map command and view the resulting Xslt.

    in reply to: Ease of generating BTS schemas with "Add Generated Items" #25607

    Hi Daniel, thanx for a tip.

    Actually I thought about something like this by my self (to develope). But if this is alrady exists – I’ll take a look.

    Thanx again.

     

    in reply to: unable to change orchestration subscriptions #25606

    Hi Thomas,

     

       Did you also verify that your orchestration’s logical ports were properly configured?

     

    in reply to: unable to change orchestration subscriptions #25605

    Hi Daniel,

    Thanks for replying.

    Host instance was restarted during the deployment process by VS. The dll was in the GAC and in some cases I tried to unregister it manually before deployment, VS put it back.

    Thomas

    in reply to: Mapping #25604

    I don’t think it’s possible to write inline C# script inside XSLT template functoid. Or I just don’t know how.

    in reply to: unable to change orchestration subscriptions #25603

    Hi Thomas,

     

       Did you make sure to restart the host instance and check that the orchestration DLL is installed in the GAC (with the correct version)?

     

       Daniel.

     

    in reply to: Mapping #25602

    Hi,

     

      Check out the following blog on how to embed C# code in custom XSLT:

    http://www.modhul.com/2006/10/01/inline-c-javascript-and-jscript-in-xslt/

     

       Daniel.

     

    in reply to: Ease of generating BTS schemas with "Add Generated Items" #25600

    Hi Yonathan,

     

       I’m not sure there is a way in the wizard to standardize the creation of data types for your schema fields and streamline that process. Have you looked into the following blog?

    http://www.biztalkgurus.com/blogs/biztalksyn/archive/2009/03/07/code-generation-guidance-package.aspx

     

       This open-source package may or may not be suitable to your needs but it’s worth taking a look at…

     

       Daniel.

     

    in reply to: unable to change orchestration subscriptions #25599

    Oups, wasn’t logged in…

    in reply to: Send all Incomming files as an mail attachment #25597

    A sequential convoy will basically just receive messages one after another. You can do whatever you like with these messages.
    One pattern is to aggregate multiple messages into a single message as you describe above.
    The pattern you need is to create a multi-part message with each new file added as an extra part to the message. The SMTP adapter will take this message and use the body part as the email body and additional parts as attachments. You do not need to use the MIME/SMIME encoder unless you wish to encrypt the mail.

    You can use this code to create the multi-part message:

    public class MessageHelper
    {
    public static void AddAttachment(XLANGMessage destination, XLANGMessage attachment, string filename)
    {
    try
    {
    int
    count = destination.Count;
    destination.AddPart(attachment[0],
    string.Format(“Attachment_{0}”, count));
    destination[count].SetPartProperty(
    typeof(MIME.FileName), filename);
    }
    finally
    {
    //decrement reference count
    destination.Dispose();
    attachment.Dispose();
    }
    }
    }

    In your orchestration, create an new message (OutputEmailMessage) with the email body, then in your receive loop add each incoming message

    MessageHelper.AddAttachment(OutputEmailMessage, IncomingFileMessage, IncomingFileMessage(FILE.ReceivedFilename));

    Send the OutputEmailMessage to your SMTP adapter, ensure you set Send All Attachments property.

    Hi Daniel.

    Ok, I changed again the Action Header from Action Mapping to single and put it in another MessageAssigment Shape. And I had to use another Schema for the respond. Now it works fine!!

    Thanks again for your help and links! [Y]

    cheers

    Wolfgang

    Hi Daniel.

    Yes, with the “Consume WCF Service”- Wizard I generated both xxxbindings.xml, one schema for request and response and an orchestration. I deletet the orchestration because I build my one before. In the request area of the schema I filled the fields with the search parameters. Then I build a send port with the binding info (wcf adapter) and set the filter to bts.operation == “the operation I need”.

    In the orchestration I have a solicit response port. The receive port receive the data and in a first step I write these Data out over another send port as an xml document.

    Thanks for not giving up so far! [;)]

    Wolfgang

Viewing 15 posts - 661 through 675 (of 9,648 total)