BizTalk Server Applications Integration - strongly typed dataset from webservice

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > September 2005 > strongly typed dataset from webservice





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 strongly typed dataset from webservice
JP

2005-08-31, 8:50 pm

Hi,
I have created a web service which returns a strongly typed dataset (using
the MSDATAsetgenerator in the custom tool property) this works great but I
cannot add this web reference to biztalk, all it says is "failed to add web
reference".

Any thoughts?
Selvan

2005-09-06, 7:48 am

Well JP,

Anything that returns serializable data from webservices can be
referenced in Biztalk 2004. Fortunatly Dataset is serializable type.
But as per Microsoft's suggession, If your schema name from calling
webservice has got a name of any C# keyword will throw you "Required part is
missing error"

Are you getting error at runtime ?. Send me the exact error if you get it
again..

Regards

Tamilselvan Subramanian,
Integration Analyst,
IBM Global Services India Ltd.

"JP" wrote:

> Hi,
> I have created a web service which returns a strongly typed dataset (using
> the MSDATAsetgenerator in the custom tool property) this works great but I
> cannot add this web reference to biztalk, all it says is "failed to add web
> reference".
>
> Any thoughts?

JP

2005-09-13, 2:48 am

Hi Selvan, here is the error:
could not generate BizTalk files.
<Orch>.localhost.PurchaseOrder.HeaderRowChangeEventHandler cannot be
serialized because it does not have a default public constructor.
PurchaseOrder is the name of the schema so there are no clashes. I tried
creating a new class and inheriting the PurchaseOrder and adding the
[Serializable] tag to it but it makes no difference
Thanks

"Selvan" wrote:
[vbcol=seagreen]
> Well JP,
>
> Anything that returns serializable data from webservices can be
> referenced in Biztalk 2004. Fortunatly Dataset is serializable type.
> But as per Microsoft's suggession, If your schema name from calling
> webservice has got a name of any C# keyword will throw you "Required part is
> missing error"
>
> Are you getting error at runtime ?. Send me the exact error if you get it
> again..
>
> Regards
>
> Tamilselvan Subramanian,
> Integration Analyst,
> IBM Global Services India Ltd.
>
> "JP" wrote:
>
Selvan

2005-09-13, 2:48 am

JP,

Please check your webservice as well as biztalk side..

From the Webservice side,

If i'm right, PurchaseOrder is a Strongly Typed Dataset (Schema) that has
no public constructor (check the access modifier). Is your calling webmethod
looks similar to the below shown code?

public PurchaseOrder Query(string strQuery)
{
//Instantiate Component
myComponent comp = new myComponent();

//Instantiate Typed DataSet
PurchaseOrder ds = new PurchaseOrder();

//Call Method
ds = comp.Query(strQuery);

//return value
return ds;
}

also note DataTable, SQLDataReader does not have default constructor, so
check you retrun the serialized type?.

From the Biztalk side,

If your WSDL file has multiple service or port type definitions, while
adding reference you get this kind of error.

Regards

Tamilselvan Subramanian,
Integration Analyst,
IBM Global Services India Ltd.


"JP" wrote:
[vbcol=seagreen]
> Hi Selvan, here is the error:
> could not generate BizTalk files.
> <Orch>.localhost.PurchaseOrder.HeaderRowChangeEventHandler cannot be
> serialized because it does not have a default public constructor.
> PurchaseOrder is the name of the schema so there are no clashes. I tried
> creating a new class and inheriting the PurchaseOrder and adding the
> [Serializable] tag to it but it makes no difference
> Thanks
>
> "Selvan" wrote:
>
JP

2005-09-14, 2:49 am

Hi Selvan,

thats pretty much what my web method does.
Im returning the purchase order.
What do I need to do to get this to work??
Thanks


"Selvan" wrote:
[vbcol=seagreen]
> JP,
>
> Please check your webservice as well as biztalk side..
>
> From the Webservice side,
>
> If i'm right, PurchaseOrder is a Strongly Typed Dataset (Schema) that has
> no public constructor (check the access modifier). Is your calling webmethod
> looks similar to the below shown code?
>
> public PurchaseOrder Query(string strQuery)
> {
> //Instantiate Component
> myComponent comp = new myComponent();
>
> //Instantiate Typed DataSet
> PurchaseOrder ds = new PurchaseOrder();
>
> //Call Method
> ds = comp.Query(strQuery);
>
> //return value
> return ds;
> }
>
> also note DataTable, SQLDataReader does not have default constructor, so
> check you retrun the serialized type?.
>
> From the Biztalk side,
>
> If your WSDL file has multiple service or port type definitions, while
> adding reference you get this kind of error.
>
> Regards
>
> Tamilselvan Subramanian,
> Integration Analyst,
> IBM Global Services India Ltd.
>
>
> "JP" wrote:
>
Selvan

2005-09-14, 7:48 am

JP,

I like to check the Typed Dataset source. So send me your PurchaseOrder.cs
(Source code of Typed Dataset) to my mail id tamilselvan ( at ) gmail ( dot )
com.

Regards
Tamilselvan Subramanian,
Integration Analyst,
IBM Global Services India Ltd.


"JP" wrote:
[vbcol=seagreen]
> Hi Selvan,
>
> thats pretty much what my web method does.
> Im returning the purchase order.
> What do I need to do to get this to work??
> Thanks
>
>
> "Selvan" wrote:
>
JP

2005-09-15, 8:52 pm

Hi Selvan,
I added the purchase.xsd to the web project and then used
'MSDATAsetgenerator' in the Custom toll property. Is there a way to retrieve
it from here

"Selvan" wrote:
[vbcol=seagreen]
> JP,
>
> I like to check the Typed Dataset source. So send me your PurchaseOrder.cs
> (Source code of Typed Dataset) to my mail id tamilselvan ( at ) gmail ( dot )
> com.
>
> Regards
> Tamilselvan Subramanian,
> Integration Analyst,
> IBM Global Services India Ltd.
>
>
> "JP" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com