BizTalk Server Orchestration - Problem with dataset

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > June 2005 > Problem with dataset





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem with dataset
Victor

2005-06-09, 7:48 am

Hello,

I have such a process. There are three orchestrations (A, B, C) published as
web services, each of them returns XML document with unique namespaces.
There is one orchestration D (also published as web service) which gets
message of type System.Data.Dataset and writes that message to a file.
Client application gets three XML documents from A, B, C orchestrations,
loads them into one dataset as datatables and passes it as a parameter to
the D orchestration published as web service.

I've tried it with one XML document from one orchestration (A, B or C)
only - everything works fine. But if there are more than one datatables in
dataset (I mean if client app calls more than one of A, B, C web services)
it doesn't work - I don't get any error messages in event log, in HAT I
don't see any messages coming to Biztalk. Is it possible to do like I want?


Here is some fragment of client code

' First we set web service parameters here
WebServiceA.Parameter1 = value
' Then we call web service and get XML document as XmlNode
Dim xmNode As Xml.XmlNode
xmNode = WebServiceA.MethodA(ceRequest)Dim tmpDataset As New DataSet
If xmNode.InnerXml <> "" Then
Dim fsReadXml As System.IO.TextReader
fsReadXml = New IO.StringReader(xmNode.InnerXml)
' Create an XmlTextReader to read the file.
Dim myXmlReader As New System.Xml.XmlTextReader(fsReadXml) ' Read the
XML document into the DataSet.
tmpDataset.ReadXml(myXmlReader)
' Close the XmlTextReader
myXmlReader.Close()
myXmlReader = Nothing
xmNode = Nothing
DataSet1.Tables.Add(tmpDataset.Tables(0).Copy)
End If

'Then we repeat thsi code for WebServiceB and WebServiceC

'Finally we call web service D
WebServiceD.MethodD(DataSet1)


Thanx in advance for any answers.
Victor


Victor

2005-06-09, 7:48 am

Some more info. I've tried to debug final web service, wich consumes dataset
as parameter and passes it to Biztalk. When there are two or more datatables
in dataset, I get this error message:


An unhandled exception of type
'System.Runtime.Serialization.SerializationException' occurred in Unknown
Module.

Additional information: The type System.Web.Services.Protocols.SoapException
in Assembly System.Web.Services, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com