Forum Replies Created
-
AuthorPosts
-
Don’t bother, I think I found the answer to this one…
It looks like if I change the XSD and play around a bit with the \”Group Max Occurs\” for the receiving element and set it to 1, it forces the mapper to generate one Level 3 entry each time I have new element1&2BT.
Can you email me your schema and sample document.
Hi,
Any one has any idea about this problem or to go about FactRetriever?
Help is really appreciated…
May 29, 2006 at 12:07 PM in reply to: MS tutorial 3 (invoice payment process) lesson3 problem! #14722[quote:74ea7229c1=\”BizWhisperer \”]In resp to the first message (tutorial 3, lesson 3), see the tutorial corrections at: http://blogs.msdn.com/lizal
It would appear that the B2BSchemas did not deploy. I would verify that it compiled and then try to deploy it again after recycling the destination BizTalk instance.[/quote:74ea7229c1]
Thanks for the info. I corrected the reported \”bugs\” found in the log … but it still won’t run 🙁
Here’s the event log I get:
\”Description:
There was a failure executing the receive pipeline: \”Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\” Source: \”XML disassembler\” Receive Port: \”ASN_ReceivePort\” URI: \”/B2BOrchestrations_WebService/B2BOrchestrations_B2BProcess_ReceiveASN_Port.asmx\” Reason: The document specification <B2BSchemas.AdvancedShipNotice> from assembly <B2BSchemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f5f7841d15c6dc86> failed to load. Verify the schema for this document specification is deployed and is in the Global Assembly Cache.Description:
A message received by adapter \”SOAP\” on receive location \”ASN Receive Location\” with URI \”/B2BOrchestrations_WebService/B2BOrchestrations_B2BProcess_ReceiveASN_Port.asmx\” is suspended.
Error details: There was a failure executing the receive pipeline: \”Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\” Source: \”XML disassembler\” Receive Port: \”ASN_ReceivePort\” URI: \”/B2BOrchestrations_WebService/B2BOrchestrations_B2BProcess_ReceiveASN_Port.asmx\” Reason: The document specification <B2BSchemas.AdvancedShipNotice> from assembly <B2BSchemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f5f7841d15c6dc86> failed to load. Verify the schema for this document specification is deployed and is in the Global Assembly Cache.
MessageId: {061C39AC-C2A8-454D-B4D2-B20CA718D008}
InstanceID: {450D37F0-7462-4F69-A6AA-95B45264ADB0}\”It seams that the shema files aren’t deployed in the cache of the project. Searching the web I tried to put the shema in the cache with this command:
gacutil -i \”schemaname\”.dll
but still don’t work…
If you have any more idea you’re welcome 😉Why do we need key file used in Tutorials, and do we have to use them in other solutions?
I have solved it, if anyone interested here’s the solution –
We need to use Message Assignment shape instead of Expression shape.
The expression for Message Assignment will be –
TestXML = new TestBPM_WS_Call.TestXMLClass();
RetVal = TestXML.TestInvoke (\”Test Input\”);
SendMessage = RetVal;Where –
RetVal is BizTalk variable of type System.String which holds the web Service return value.
SendMessage is BizTalk Message of type System.String.
We need to assign send port to SendMessage.
The web method is as follows –
[WebMethod]
public string GetGoodsMovement(string input)
{
return (\”Web service Response : \”+ input);
}If we drop the following xml file in receive port –
– <ns0:Root xmlns:ns0=\”http://TestBPM_WS_BA.ReceiveFileCommand\”>
<Descrip>Descrip_0</Descrip>
</ns0:Root>The output in the receive port will be –
<?xml version=\”1.0\” encoding=\”utf-8\” ?>
<string>Web service Response : Test Input</string>I have solved it, if anyone interested here’s the solution –
We need to use Message Assignment shape instead of Expression shape.
The expression for Message Assignment will be –
TestXML = new TestBPM_WS_Call.TestXMLClass();
RetVal = TestXML.TestInvoke (\”Test Input\”);
SendMessage = RetVal;Where –
RetVal is BizTalk variable of type System.String which holds the web Service return value.
SendMessage is BizTalk Message of type System.String.
We need to assign send port to SendMessage.
The web method is as follows –
[WebMethod]
public string GetGoodsMovement(string input)
{
return (\”Web service Response : \”+ input);
}If we drop the following xml file in receive port –
– <ns0:Root xmlns:ns0=\”http://TestBPM_WS_BA.ReceiveFileCommand\”>
<Descrip>Descrip_0</Descrip>
</ns0:Root>The output in the receive port will be –
<?xml version=\”1.0\” encoding=\”utf-8\” ?>
<string>Web service Response : Test Input</string>The mapping and converting the flat file into Xml is probably taking the most time.
Also remember that Biztalk is persisting the messages to the message box for each record. All in all, it is doing a lot more work than if you just imported the data directly into SQL.You are not even going to come close to the SQL time.
An easy thing to do to speed things up a little is make the flat file schema nodes as small as possible. So if you have a tag called <InputData> make it <InpDt> or something like that.
Hope this helps.
Doesn’t anyone have answer or my question is not clear ?
If this is the only requirenment it would be better you use standone utility written in any language.
Thanks, this is what I needed –
xmlDoc.Load(retValue);
myMessage = xmlDoc;I am using the following schema –
<sehema>
-root
-returnValue(This chield field element is of type xl:string)and i have defined a variable(RetVal) of type System.String and now the expression is –
TestWebService = new Test_WS_Call.TestClass();
RetVal = TestWebService .TestInvoke ();
myMessage = RetVal ( error here, could you please explain why?)
Thanks.
Yes, I am dropping a XML file. I want Biztalk 2004 to create the digital signature…
If i dont use the MIME/SMINE encoder, I will not get the error. however, my message will not be digitally signed…
Anyone encounters this error before ? Pls help.
What about adding a CDATA tag around your email.
If the email has offending data in it, this shoudl prevent the error.xDoc.LoadXml(\”<ns0:returnValue xmlns:ns0=’http://LeadMgmtEmail.returnValue’><return><![CDATA[
\”+Email(POP3.From)+\”]]>
</return></ns0:returnValue>\”);Can you send an example of the value of your email? Does it contain XML that has elements names with spaces in it?
To summarize what is said above, there are two categories of tools:
ETL – Extract Translate Load (SSIS)
BPM – Business Process Management (Biztalk)Use the right tool for the right job.
The normal way to call web services is to make a web reference, then use the send/receive shapes. I’ve never tried the direct .NET approach. Once you make a web reference, a schema is built for you (you can drill down under the web reference and view it).
Note that web services can return simple types or complex types.
A complex type is a .NET class or structure, and would be represented by a schema. A simple type would be a simple value such as a string, integer, etc…If the variable contains XML, you can do something like this:
1) Define a variable in Orch Viewer: xmlDoc of type System.Xml.XmlDocument
2) In an expression shape do this:
xmlDoc.Load(retValue);
myMessage = xmlDoc;In this case, you would have to have a schema to define a message called \”myMessage\”.
You could also write to a file directly using .Net classes, but this is probably not where you want to head.
One advantage of using Send/Recieve and Ports (for web services or flat files) is the Biztalk retry capabilities. If the web service is down, Biztalk will try it again. The SendPort has a retry interval and max retries parameter.
-
AuthorPosts