community-content

Forum Replies Created

Viewing 15 posts - 601 through 615 (of 9,648 total)
  • Author
    Posts
  • in reply to: Custom Extension XML #25695

    Ok, but when I add the path to my custom extension xml file within the grid properties. I dont get a tag like yours. Even when I rebuild the project. Evertytime when I close/open VS2010 I have to add the path back again. It seems my project doesnt save the changes to grid properties. This only worked out for me with custom xslt and custom extension xml.

    This is the message I get when I use custom xslt and custom extension xml:

    C:\Users\ASlupianek\Documents\Visual Studio 2010\Projects\…..\……\IWMappingOI_to_IW.btm: The compilation is using the CustomXslt and CustomExtensionXml tags to generate the output. The map content is ignored.

    When I try to build the project only with custom extension xml I dont get a message like this. No “The compilation is using the customextensionxml tag to…. I have no CustomExtensionXml tag in my *.btm.

    When I search for “Custom” within my *.btm file I cant find any results. Man this is strange. Why do you have a “CustomXSLT” tag and I dont? I have my ExternalAssembly.xml in the same project directory and it is included in my project. But nethertheless I dont get a “CustomXSLT” tag….

    In option 2, for simplicity I said that we need to transfer these 2 files (Attachment and XML message) to FTP folder. However there is processing involved with XML message when it reaches BizTalk. Also this is not the only service we are implementing. We have many services to implement using BizTalk. Only for this service we have to change the design since it involves huge bulky data in SOAP request.

    in reply to: Sending Html mail with embedded image via the smtp adapter #25693

    You don’t have to define specific message parts on your message. Each BizTalk message is inherently a multipart message.

    You have to load the image file into the message part. You will need a C# library to do this:

    public class StreamFactory : Microsoft.XLANGs.BaseTypes.IStreamFactory
        {
            Stream stream;

            public StreamFactory(Stream stream)
            {
                if (null == stream)
                    throw new ArgumentException();

                this.stream = stream;
            }

            Stream IStreamFactory.CreateStream()
            {
                return stream;
            }
        }

        public class MessageHelper
        {
               public void AddImagePart(XLANGMessage message, string filepath, string contentId)
               {
                     try
                     {
                         StreamFactory factory = new StreamFactory(new FileStream(filepath, Open, Read, Read));
                         int count = message.Count;
                         message.AddPart(factory, string.Format(“Attachment_{0}”, count));
                         message[count].SetPartProperty(typeof(MIME.FileName), Path.GetFileName(filepath));
                         message[count].SetPartProperty(typeof(MIME.ContentID), contentId);
                      }
                      finally
                      {   //important to decrement reference count and stop memory leaks
                          message.Dispose();
                      }
               }
        }

    Then in your html set the img src to the ContentID

    in reply to: Custom Extension XML #25692

    This definitely works, I have an example I have created. The CustomXslt tag in the .btm file looks like this when not using a custom Xslt file, just the extensions file:
    <CustomXSLT XsltPath=”” ExtObjXmlPath=”.\extension.functions.xml” />

    Typically I put the extensions file in the same project directory as the map and add it to the project. This is so it is maintained under source control

    in reply to: Consume one WCF service for multiple Biztalk application #25691

    Hi,

    But after you generate schemas – you have binding files – in which you can change port names – to be created.

    Open binding XML file, find there a property Receive port name/ or send port – if you send request and get resposne – and change them.

    The other thing: if you need to use one receive location – by two different applications (by the way – what’s the difference? all messages are proceeded twice? Or different messages?) – and use direct binding. When a message arrives to message box – it will be picked by all subscribers (two your applications at once.)

    Hi,

     

       If you go with option 1, it is recommended to place your receive handlers associated with HTTP/S and SOAP adapters on an isolated Host.

     

       I would recommend option 2, but remove BizTalk from the picture altogether, since you are not doing any processing on that attachment file anyway, and you are just moving the file around, is that correct?

     

       Daniel.

     

    Hi Abhishek,

     

       The property FILE.ReceivedFileName is one of the promoted properties by BizTalk that you can query on your incoming message. You can then parse that value and extract the filename part in an Expression shape.

     

       Daniel.

     

    in reply to: the ghost in the maschine #25688

    Hi Roland,

     

       The gap of 5 minutes for instances that time out is due to the Maximum Throttling Delay setting in message processing (or publishing) located in the BizTalk Host properties’ Advanced tab section (the default setting is 300,000 milliseconds, or 300 seconds or 5 minutes). You might want to adjust these settings to boost your BizTalk server’s performance, here’s an MSDN article for more information:

    http://msdn.microsoft.com/en-us/library/aa559628.aspx

     

       With regards to seeing the number of running instances increasing, make sure that these are not orphaned BizTalk instances. Here’s a blog on more details about this issue (with a link to download a hotfix and some tips):

    http://moriahsoft.com/ImadE/post/2010/05/10/Purging-Orphaned-BizTalk-Instances.aspx

     

       I hope these help in resolving your issue(s),

     

       Daniel.

     

    in reply to: Custom Extension XML #25687

    Where did you save your external xml file? I’m working with VS2005 and saved xml file in the same project where I have external assembly. In the map just click custom extension xml in the properties and find your file. Works for me.

    Hi.

    Thanks a lot for your answers and tips. At least it was the missing targetNamespace in the received xml. I called the Service directly on the server everything works fine, than I checked the ?WSDL and I saw the missing tragetNamespace.

    So, thanks again for your help.

    Wolfgang

    in reply to: Sending Html mail with embedded image via the smtp adapter #25684

    Ok so if I have understood correctly,

    in my orchestration:

    1) for each picture in my HTTP content (ex: http://localhost/logo1.gif), I set a new part (example: partImage1 of type xmldocument) in my multi-part message :

    outMsg.partImage1(MIME.ContentLocation) = http://localhost/logo.gif“

    I set a CID programmatically : outMsg.partImage1(MIME.ContentID) = 12345;

    2) programmatically, I replace in my HTML the node like this : src=”cid:12345″ ?

     

    in reply to: Custom Extension XML #25683

    hey greg, I found out that custom extension xml works only with custom xslt path.

    i tried out the xslt file, which was generated by validate map, in custom xslt path. And there is an attribute field which looks like this (in the *.btm file):

    <CustomXSLT XsltPath=”..\..\..\..\..\AppData\Local\Temp\_MapData\IWMappingOpenImmo_to_IW\IWMappingOI_to_IW.xsl” ExtObjXmlPath=”.\IWMappingOI_to_IW_extxml.xml” />

    So I believe that the custom extension xml file works only if you work with your own xslt file. But I dont. I am working with the xslt file generated by VS2010.

    in reply to: Consume one WCF service for multiple Biztalk application #25682

    Hi Yonathan Masovich,

    Thank you for quick help. I intended to do with your guide. Unluckily, this service was hosted at another company. My biztalk applications  just used “Add Generated Items” –> “Consume WCF service”.

    Thank you,

     

    I have 2 options

    1) Allow biztalk to accept the SOAP message with big attachment (size varing from 1 MB to 10 MB). and choose a system configuration (hardware and software) to handle such a big data transaction.

    2) Change the design to :

    Web Portal ==> Proxy web service (C# .Net) ==> BizTalk Hub ==> FTP folder

    With this design new component “Proxy web service (C# .Net) ” introduced to accept SOAP request with big attachment. This component will seperate the attachment file from SOAP request message and create attachment file in filesystem and will pass the path of that file and rest of the XML message to BizTalk. BizTalk will use the file path to move that file from local folder to FTP path (by means of external scipt.)

    IN ABOVE 2 OPTIONS WHICH IS THE STANDARD WAY OF IMPLEMENTATION??? 

     

    in reply to: Sending Html mail with embedded image via the smtp adapter #25680

    In the Html pictures are always <img> tags with a Url, you cannot put image data directly in the Html document.
    This rule applies with Html mail.
    The way images are embedded in Html email is to add the image as a MIME part to the email and then in the img tag set the src attribute to the Content-Id of the MIME part. There is a special Url syntax for this.

    e.g. if this is the MIME header for the image part:
    —-=_NextPart_001_000D_01C79667.1A2EEFB0
    Content-Type: image/gif
    Content-Transfer-Encoding: base64
    Content-Location: http://localhost/images/logo.gif
    Content-ID: 1C7AE6B1-6728-4a5e-8D64-02F27B91B666

    Then in your Html mail your add an <img> node:
    <img src=”cid:1C7AE6B1-6728-4a5e-8D64-02F27B91B666″ />

Viewing 15 posts - 601 through 615 (of 9,648 total)