Forum Replies Created
-
AuthorPosts
-
I figured out my problem. The XPath query need to have a surrounded "string()" function call as follows:
XPath Query:
string(/*[local-name()='batch']/*[local-name()='rec'][position()='1']/*[local-name()='messageId'])
P.S. This site is great!
Thanks,
–MarcinThere really isn't any problem, you can call it from an expression shape without issues. If the method in your .net class is static, you can call it directly. Otherwise, you need to first add a variable to your orchestration with the correct type, and then call it later on.
For step two.
When you add your a .NET class variable to the orchestration there is a property, Use Default Constructor.
If this property is true, the following code will be added to when the orchestration is compiled
yourvariable = new yourclass();
If your class does not have a default constructor then you need to set the property to false and explicitly instantiate the object yourself in the expression shape.
yourvariable = new yourclass(parameter);
Thank u YouseT. Omar, it's exactly what i need.
TNX
1 – From the BizTalk project that contains the orchestration add a reference to the assembly you wanna call
** before doing this, ensure that the assembly has a strong name (signed) (use sn.exe from the .NET SDK)
2 – A. If you want to instantiate an object from your assembly and call methods from it, add a variable to your orchestration, and assign it the desired type from the referenced assembly. Initialize this object before using it, in an expression shape.
B. If you want to call a static method provided from a class that is included in you assembly, there is no need to declare a variable of the class type. In an expression shape, call the method from the class, supplying it the required parameters.
Hope this is useful,
Thanks Bryan, slowly (as I am) I get an idea of how messages are being constructed.
Still don't know if my approach I'm using at the moment is right but I will come back.
Hansi
TNX Tomas,
I understood what u mentioned, however do u have stuff concerning invoking or what ever .net class library from Biztalk-2006. Or to explain in more details how to figured it out.
Tahnk u
You can certainly do that. The easiest way is to create your .NET class so that the method takes an XmlDocument instance as an argument, and then you can just directly pass your BizTalk message as the argument and BizTalk will do the conversion behind the scenes. You can however also use classes that support XmlSerialization if you want as long as the class serializes to the exact same schema you got in BizTalk for your message.
Sajid,
It does sound like you (possibly accidentally) enabled the MSMQT adapter. You can remove it easily, though, from the BizTalk Management Console: look under Platform Settings -> Adapters, find it and you should be able to remove it via right-click and the context menu.
I would look at your Receive Port Location. Change the pipeline to XML data vs pass through and I bet that corrects the issue as I understand your initial post. I dont think it has anything to do with encoding type and such.
September 25, 2006 at 11:15 AM in reply to: Multiple invoices in edi file to one xml out file? #15830Maybe one could group the edi messages on the interchange ID ?
If you are using Covast Adapter, you can batch the output on interchange ID.
not sure how it does in BizTalk EDI Adapter does????
Is it possible to join all the invoices in the edi file to one xml file?
Send Port ->Copy mode:Append
R-
September 25, 2006 at 10:47 AM in reply to: Biztalk server 2004/2006 on windows XP media center #15829when i purchased laptop it came with XP media center(free), at that time i don't know it suports windows XP Prof OS too..
i payed for Windows XP Prof… for update, later i came to know Media center suports both.
If it workes let the group know, hope somebody save some bugs.
Thanks
Nar-
September 25, 2006 at 10:39 AM in reply to: Biztalk server 2004/2006 on windows XP media center #15828Thanks.
I will try it.
September 25, 2006 at 9:15 AM in reply to: Biztalk server 2004/2006 on windows XP media center #15827Anil,
I guess it should work, windows XP media center(Suports windows XP Prof)
just like BIzTalk Installation process on Windows XP Prof …..
Nar-
Hansi,
I'd look at this post for ideas on how to create a message within an orch.
http://www.objectsharp.com/Blogs/matt/archive/2004/11/09/1009.aspx
-
AuthorPosts