Forum Replies Created
-
AuthorPosts
-
Hi,
Have any one having idea of the biztalk and sharepoint concepts training institues in chennai..
if you having details please provide the details as soon as possible.
It looks like you are calling a web service that takes a single XML parameter containing some contextual information along with the message content. Right? I bet you are using the promoted property just to set the value of the MessageContent within your orchestration. I think the easy fix is to make the MessageContent property a distinguished field instead of a promoted property. (But beware! There is a fundamental flaw in your web service contract.) Distinguished fields are meant for use within orchestrations, and there is no character limit on them. Promoted properties are meant for routing, so you should avoid using them to set values within orchestrations.
So what is the flaw I mentioned? The web service is accepting the message content as a string field. This approach is all too common, and it works, but there are some problems with it. By making the XML a string field, it gets string encoded. See all of the &:lt and &:gt? This bloats your message as it goes over the wire. Also, the contract is not explicit since it does not contain the schema for the message content. This means the web service serialization engine can’t validate the message content.
Do you have control over the web service? If so, here is how to send the data as XML.
- Build the schema that you want to send in the BizTalk schema editor.
- Use XSD.EXE to genearate a C# class for the schema.
- Modify the web service to accept the C# class as a parameter.
- You may need to use the WCF wizard to re-generate the input schema, because the web service will wrap some additional XML tags around the XML data (web method name and parameter name).
- Also, you might want to look at sending the context info (ServiceAuditID, ServiceRequesterID, etc.) in the SOAP header. This is exactly what the SOAP header is meant for.
Hope this helps!
1. I would just create a single tracking profile for everything.
2. It might be possible to make the ActivityID show up there somehow, but your portal config is limited to what you can do in the activity definition spreadsheet. Unfortunately, the BAM portal is not 100% flexible. The good news is you can use SSRS or write a custom app to view BAM data directly from the database.
3. I think you are going to have to usesomething other than invoice number for the ActivityID when you begin the activity. You can maybe use continuation to allow updating the activity by invoice nuber (http://msdn.microsoft.com/en-us/library/aa559486.aspx). For this one you probably need to use the BAM API instead of a tracking profile. (http://msdn.microsoft.com/en-us/library/aa559502.aspx).
Siva,
A dynamic send port sounds like a good fit for your scenario. Here is a walkthrough for setting up a dynamic send port: http://www.codeproject.com/KB/biztalk/DynamicRouting.aspx. You need to look up the vendor info from the database, then go into a loop where you send the XML to each vendor. Since you are making multiple outbound connections, you might want to look at using an asynchronous pattern: http://www.codeproject.com/KB/biztalk/bts_async_call.aspx. The asynchronous pattern lets you open all off the outbound connections almost in parallell and then wait for the responses at once.
Hope this helps!
Thank you for helping me in this issue and sorry for the unclear post. Let me be more more clear here.
We have an application where our sale Rep can check item price and availablity. When they pick the item and click the button, application will generate xml and send it to biztalk.
Biztalk will receive the item number from that xml and check our database who has that item and return vendors info such as vendor ID , their sku number and other info via Oracle adapter. So number of vendors depend on db.
Then orchestration has to loop through each vendor and create our internal xml request message.
I have to send this message to vendor. Since vendors have their own xml format..i have to map this request in send port.
I have to get back the result from each vendor and build an result xml. it will be return to sales rep through that application.
So my question is, if i have to send request to 8 vendors how can i do it? I will have only one soft send port in the orchestration. how can i connect to multiple physical send ports in binding?
Thank you for your help in advance.
Siva
I have a few questions:
1. What are you receiving? Orders, shipments, etc? This makes understanding your needs a bit easier.
2. How do you know which vendors to send to?
3. What are you sending to the vendor? Email, XML file, etc?
4. What are you receiving from the vendor? Email, XML file, etc?
Hi My project step is little bit of different.
1. I receive item info in a XML file from back end system.
2. then i have to send that to vendors(up to 10) .. this is where i have issue…
how can i send our message to multiple vendors at same time? I can not use 10 porst since some time i may send it to 5 vendors. I need to use map in send port level
3. receive the response from each vendor
4. create our own format message using above
5. return to back end.
Here’s a propsed way of handling this:
1. Create an Orchestration that receives the messages from the various vendors
2. Use a Correlation Set to identify the vendor for a particular message and publish the messages to the MsgBox
3. Create an Orchestration for each Vendor that receives messages directly from the MsgBox based on the Initialized Correlation Set
4. Translate the vendor messages into a common format and publish to the MsgBox
5. Create a Send Port that sends messages of the common format
Hi,
Thank you for your help. Since I am new to BAM I am not sure how to do. I never work with BAM before. Could you give me more detail or where can I find these info?
I have some other questions as well. Could you give me answears if possible?
1. If i want the BAM to monitor different type of transaction from different partners, should i have to create profile(.btt) for each transaction? I would like to keep same definition. Eg. If i send or receive 850, 810, 856 to A and same documents to B, now i need 6 .btt. Am i right?
2.I have relatedactivity, name “LoopInvoice”, in my BAM. I am using this since I have loop in my orchestration. When I view the record in BAM it is showing the relatedactivity name for each loop under the “Related Activity” section. Would it be possible to show ActivityID or some other ID under there?
3. My relatedActivity activityID is invoice number. If i get duplicate invoice number, BAM throws error. How can i handle this to show as Duplicate? I want to keep invoice for ActivityID since I want to update this BAM up on 997.
Thank you in advance,
—
Thank you,Siva
August 8, 2008 at 5:50 AM in reply to: message part has not been initialized in construct statement #20357I get around this by doing the following:
1. Generate an instance of your schema by Right-Clicking on the schema in the Solution Explorer and selecting Generate Instance
2. Create an XmlDocument variable in the Orchestration called xmlDoc
3. Drop a Construct Message and Message Assignment shape
4. Inside of the Message Assignment shape code the following:xmlDoc.LoadXml(<<copy XML from generated instance in step 1 and remove element values as they are populated be default>>);
msg = xmlDoc;
Why Microsoft didn’t include a way to create a new instance of a message from a supplied schema is beyond me!?
Can you give some more info on what you are tying to achieve with promoted properties? You don’t need promoted properties to send data via WCF. Sometimes you do need to use promoted properties to set SOAP header values, but typically the data is just in the body of the message.
Hi Russell.
I checked the limitations for promoting a field(http://msdn.microsoft.com/en-us/library/ms962790.aspx).Is there any way that I can achieve this still by using promoted property???or is there any other way to achieve this??Its a bit urgent.
Cheers,Sri
Hi Russell,Yes I am having a promoted property and I have the increased the max length of this property to 4000 as I need to put in few fields(almost 12) from my Source to this field and then send out to an external system which I am consuming WCF webservice.So I thought this is the proper way of doing it.”Promoted Properties must be 256 characters or les” is this a rule?
August 7, 2008 at 12:51 PM in reply to: Business Rules Vocabularies – Test for in a Range of Legal Values #20351We decided to use the “contains” clause, which does “RegEx”. We will probably put the RegEx expression in a vocabulary, for example:
VocabGoodStates = “^TX$|OK$|FL$”;
Then the rule will be:
MyXMLState contains VocabGoodStates.
Neal
Have you looked at receive pipeline debatching? This is the Microsoft-blessed way to debatch in BizTalk. For simple cases, you could use a messaging only solution that debatches in a receive pipeline in a receive port (much more efficient than an orchestration). For more comples cases, you can call a receive pipeline from an orchestration (http://geekswithblogs.net/sthomas/archive/2005/06/16/44023.aspx). If you really need to use XPath debatching you can use the xpath function (http://geekswithblogs.net/sthomas/archive/2004/10/25/13269.aspx). Maybe use an indexed XPath statement within a loop to extract the individual records.
-
AuthorPosts