|
Home > Archive > BizTalk Server Framework > September 2004 > BT2004 + Web Services + Array types = Problem
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 |
BT2004 + Web Services + Array types = Problem
|
|
|
| I'm trying to use BT2004 with some pre-existing web
services. When I try to add the Web Reference I get this
error: "Could not generate BizTalk files. "An 'xxx'
operation parameter or return type is an Array. Array
types are not supported." Why is this a problem, when is
it going to be fixed, and are there any good workarounds?
| |
| Gilles [MSFT] 2004-04-27, 1:36 pm |
| >I'm trying to use BT2004 with some pre-existing web
>services. When I try to add the Web Reference I get this
>error: "Could not generate BizTalk files. "An 'xxx'
>operation parameter or return type is an Array. Array
>types are not supported." Why is this a problem, when is
>it going to be fixed, and are there any good workarounds?
John,
This is a known issue. I assume you are trying to call the web service from
an orchestration.
In that case, as a workaround, you can write a .NET function that makes the
web service call and return the data.
Compile this function into an assembly and call it from your orchestration.
-Gilles.
| |
| AnujMittalRSA 2004-09-28, 12:29 pm |
| quote: Originally posted by Gilles [MSFT]
>I'm trying to use BT2004 with some pre-existing web
>services. When I try to add the Web Reference I get this
>error: "Could not generate BizTalk files. "An 'xxx'
>operation parameter or return type is an Array. Array
>types are not supported." Why is this a problem, when is
>it going to be fixed, and are there any good workarounds?
John,
This is a known issue. I assume you are trying to call the web service from
an orchestration.
In that case, as a workaround, you can write a .NET function that makes the
web service call and return the data.
Compile this function into an assembly and call it from your orchestration.
-Gilles.
Gilles,
I am also facing the same problem. So as you adviced I am creating another ASP.NET WebService in VS.NET which will call WSDL files (created from Microsoft Soap Toolkit) through web reference. In my VB6.0 components, I am accepting IXMLNodeList and also returning IXMLNodeList.
But when I try to call the function from web reference (wsdl) and pass System.Xml.XmlDocument.ChildNodes, I got error "You must implement the Add(System.Object) method on System.Xml.XmlNodeList because it inherits from IEnumerable."
This is what I am doing in ASP.NET Web Service:
System.Xml.XmlDocument oXml = new System.Xml.XmlDocument();
System.Object obj;
Enterprise.E2 webService = new Enterprise.E2(); // this is from webReference, which i created from wsdl files and these wsdl files are created from SOAP Toolkit.
oXml.Load(@"C:\Tutorial\Test.xml");
obj = webService.FunctionName(oXml.ChildNodes); 'Error comes on this line
Error Description is :You must implement the Add(System.Object) method on System.Xml.XmlNodeList because it inherits from IEnumerable.
Please help me out here, what should I do now.
Thanks in advance.
Anuj |
|
|
|
|