Forum Replies Created
-
AuthorPosts
-
But of course – the next error. Please can somebody explain me how to
initialize messages..
I use a construct shape in a loop where I construct the Message "Request"
(properties of construct shape = Request). I then have constructed the
message Request and can use it, no??
After the construct shape I use an expression like:sXPath = System.String.Format("/*[local-name()='Mat' and
namespace-uri()='http://tempuri.org'%5D%5B{0}]/*[local-name()='price' and
namespace-uri()='http://tempuri.org']",counter);xpath(Request.Price,"//*[local-name()='Price' and
namespace-uri()='http://tempuri.org']") = xpath(Bill, "string(sXPath)");First term is getting one position of the bill ([{0}] is evaluated to
counter, if I understand this right..) Second term should give the Message part Request.Price
the value of the billed price for one position. So why isn't the Message part not being "initialized
in construct message"??Thanks once again,
HansiFirst read, than right – sorry, forget about my last post. I'm using a multipart message, RequestPruefeWareneingang.Lieferposition (last one being the part) in the xpath-function seems to work (at least I don't get any error in the expression editor).
As I haven't tested the whole orchestration until now is there anything I should take care of using multipart messages (= web referenced messages)?
Thanks being patient with a newbie,
Hansi
Hello Bryan,
thanks a lot for your reply. The examples where exactly what I needed. Now I'm trying to set some values from one message to another one (last one being a web-reference).
Unfortunately I always getting this error:'xPath(Requst, sXPathOut)': an xpath expression must be of the form 'xpath(message-part, string-ref)' or 'xpath(string-ref)'
The expression I'm using:
sXPath = System.String.Format("/*[local-name()='Rechnung' and namespace-uri()='http://tempuri.org'%5D/*%5Blocal-name()='Materialpositionen' and namespace-uri()='http://tempuri.org'%5D/*%5Blocal-name()='Materialposition' and namespace-uri()='http://tempuri.org'%5D%5B{0}]/*[local-name()='MaterialNr' and namespace-uri()='http://tempuri.org'%5D",zaehler);
sXPathOut = System.String.Format("//*[local-name()='MaterialNr' and namespace-uri()='http://tempuri.org'%5D");
xpath(RequestPruefeWareneingang,sXPathOut) = xpath(RequestRechnung, "string(sXPath)");I'm not sure what's the story about the xpath-String function for sXPath. Error comes up in the last line by "xpath(", RequestPruefeWareneingang being the Web-Message. The expression shape is in a "construct message"-shape, which should construct this message.
Thank's a lot in advance,
HansiAs Bryan said, the help guide is very good on this topic.
I was just doing this last week to create the folders for my BizTalk solution when I deployed it. You can use Vb scripts, Command files, and more and you just add them as a Resource to your application. It’s really easy and straight forward. The only hard part is actually getting Vb Script to do what you want it to.
Best of luck.
Yeah last I heard it was going to be released Q1 of 2007.
Look up "Creating a Pre– or Post- processing Script" in the BizTalk Documentation.
You can get there here.You'd basically use xpath while looping thru the message to extract the data you wish to use. You can also do xpath streaming using the the XPathReader object. Read more here http://martijnh.blogspot.com/2006/03/xpathmutatorstream.html.
Also look at this sample for looping thru messages and extracting out data.
I would write a small .NET class that takes in an XLangMessage type and loops thru the message and extracts out the specific message parts that you wish to use. Something like:
(This was done off the top of my head so its probably not 100% correct.)
XmlDocument docPart = XLangMessage.Item("PartName").RetrieveAs(typeof(XmlDocument));
how do you have solved to create single messages out ouf the multipart document to send them to the sql server?
Regards Roberto
Thanks!! Works great.
September 22, 2006 at 1:01 PM in reply to: Redeploying application, but still executes old functionality #15811I have had to do a gacutil /i assemblyname
September 22, 2006 at 11:28 AM in reply to: Redeploying application, but still executes old functionality #15810i got the same problem long time back, i did the same steps what you did, Additionally i cleaned up all my HAT message and rebooted m\c.
it worked for me. changing assembly names creates more bulk.
Nar-
September 22, 2006 at 11:01 AM in reply to: Redeploying application, but still executes old functionality #15809Additionally, another way I can get to see the changes is if I rename the Application Name and Assembly Name every time I deploy (a real pain, but easier than creating everything from scratch).
this error comes if you are not ussing the messages in the right way.
1. check the right schema is there in the msgIncompleteOrder message?
or create one more message with same schema and add in the process.
Nar-
The error is telling you that there are running or suspended service instances that depend on the artefacts (orchestrations, schemas, pipelines) on your assembly. Go to the Group Hub Query in the BizTalk Management Console and terminate any active or suspended instances you find there that are related to the assembly you want to redeploy.
-
AuthorPosts