Please Guide me I am Nnew with Biztalk server 2004

Home Page Forums BizTalk 2004 – BizTalk 2010 Please Guide me I am Nnew with Biztalk server 2004

Viewing 1 reply thread
  • Author
    Posts
    • #13566

      Hi,
      I am new to Biztalk server. I have to create a solution in which first I have to convert a csv file to xml file ( I think that would be done in the receiving pipeline) and then do some compution with the values I get in the xml file and later call some API of an application..

      Can you guide me with this please.

      Well, to start off the first problem I am facing is that…. while creating a dummy application …. I have to receive a file from a folder…..process it and save the result on to another folder and the again from the other end send a acknowledgement from a new folder to a new folder….that is there are 4 folder and two receiving and two sending folder and similarly 4 ports for that…..( 4 folders have to be there) …….The problem I am facing is that while designing the orchestration I am unable to use two receiving port…. I cannot use correlation … please guide me with a probable solution.

      Thank you in anticipation

    • #13567

      well, Neal, I was just creating a dummy application and it’s flow is like ;

      1) I will place a xml file with a certain format into a folder A (receiving folder).

      2) That file will be processed by orchestration design and and the response Xml file will be sent to folder B.

      3) Then a acknowlegment Xml will be generated according to the result ( that is simulated by placing a file of success or failure) in folder C

      4) The file is received by BTS and send to a folder D.( just directing it to another folder..)

      These 4 folder A B C D are required …its kind of requirement…..so, please kindly guide me how to do it this way.

      Please ask for clearification if required futher.

      Thanks for responding so quickly.

      With Regards
      Rajat

      • #13568

        Thanks Neal, so far you have guided me in e very possible manner.

        But, I am still facing one last problem:

        –> After initializing the correlation after folder B send and using the same correlation in the next receive, the application is building correctly and is getting deployed also, but,

        –> when I place a file in folder C, it is being taken from there for processing but [b:c49bff8a81]never appears [/b:c49bff8a81]in the folder D .

        –> I am unable to trace the problem ..Please guide me with it.

        I would definately like to appreciate the help you have given me so far, however, I would be gratified if you guide spare some time and guide me this one as well.

        One more thing, please also guide me if another application like C# application can be made such that a button in it could trigger my this Biztalk Apllication.i.e whenever I press the button in the C# application the BizTalk Server Apllication starts and takes the input from folder A.

        Thanks a lot.

        Hope to hear from you soon…

        Thanks Again…

        Rajat

        • #13569

          Thanks,

          I think that would definately help me out… 😀 …..

          However, I would like to ask for one more help……

          Can you guide me with any possible help …( sample code or link ) for calling API of an application and passing values to it.

          Thanks for the help, I am really obliged !

          Rajat

          • #13570

            For the first part of your question, you can define two schemas, one for the flat file and one for the desired xml file, then create map that maps from the flat file to the xml file.

            You can run and test this with just a simple receive port (and a receive location) and a send port that subscribes to the receive location. On the receive location, attach the map.

            For the second part of your question regarding your orchestration and the four folders, I got a list lost. Maybe you could elaborate more specifically.

            Neal Walters
            http://Biztalk-Training.com

            • #13571

              Well, get folder A and B working first.

              Then it’s a simple matter of correlation to handle C.
              When you send the message to B, specify an initializing correlation id that relates to a promoted field in your schema that is unique to the message. If there is nothing unique in the message, add a GUID to it and set the value of the GUID before you send it.

              The send to Folder B, will be followed immediately by a Receive from folder C (where you set the following correlation). The orchestration will dehydrate, waiting on the message to appear. When you drop the file in the C folder, Biztalk will try to match the correlation field(s) to any waiting orchestrations (if it matches fine, if it does not then you will get error).

              So to set the correlation do the following:
              1) Promote the field(s) needed to make the correlation unique
              2) Set up a correlation type in orchestration viewer (think of correlation type as a class)
              3) Set up a correlation set (think of this as an instance object of the correlation type).
              4) On the send (B), set the initializing correlation set
              5) On the receive (C), set the following correlation to the same correlation set used in step 4 above.

              Neal Walters
              http://Biztalk-Training,.com – Learn Biztalk Faster!

              • #13572

                1. Here’s the first trick I learned a while back.
                In HAT – Click \”Operations\” then \”Service Instances\”.
                Change class to \”All\” and click \”Run Query\”.
                This will show all messages that Biztalk received, but could not match
                to a waiting orchestration (based on the correlation id).

                If necessary, you should be able to drill down and see the message
                or save it to disk.

                2. Use a tool called the Biztalk Subscription Viewer.
                I’m not sure why Microsoft couldn’t give us an icon for this.
                You have to run it here:

                c:\\Program Files\\Microsoft BizTalk Server 2004\\SDK\\Utilities\\BTSSubscriptionViewer.exe

                It will help you confirm that you are correlating on the proper
                correlation ids.

                Correlation is a bit of pain at first, but these two tricks should help you figure out what’s wrong.

                Neal Walters
                http://Biztalk-Training.com – Learn Biztalk Faster
                http://Sharepoint-Training.com – End-User Sharepoint Videos

                • #13573

                  You can call .NET methods from Biztalk expression shapes.

                  1) Make a reference to the assembly
                  2) If it is not a static method, go to Orchestration Viewer and add a new variable, set the \”Type\” using <.NET class> and select the class. Then in the expression shape instantiate the object:
                  myObj = new MyNamespace.MyClass();
                  3) call the method:
                  myObj.DoSomething(arg1,arg2);

                  4) If the class has a static method, you make the reference as in 1) above, then in the expression shape, code something like this:
                  MyNamespace.MyClass.DoSomething(arg1, arg2);

                  If the API you want to call is not .NET, you would have to write a .NET wrapper for it or read up on the Interop features of .NET.

                  You could also wrap it with a web service and use the Send/Receive shapes to call the web service (after adding a \”web reference\”).

                  Neal Walters
                  http://Biztalk-Training.com – Learn Biztalk Faster
                  http://Sharepoint-Training.com – End-User Videos

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.