BizTalk Server General - How to use the Record type?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > December 2005 > How to use the Record type?





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 How to use the Record type?
Samuel L

2005-12-22, 7:48 am

Hi!

I'm having troubles with a custom functoid that I'm implementing.
It is configured to take a ConnectionType.Record as input parameter.

But how do I specify my functoid function to take such a type as parameter?
I have tried the XmlNode type but without succeeding.

Any ideas? Thanks!


Selvan

2005-12-22, 7:48 am

Samuel,

Did you tried the function parameter with
System.Xml.XPath.XPathNodeIterator ?.

Hope this would work.

Cheers,
Selvan.

"Samuel L" wrote:

> Hi!
>
> I'm having troubles with a custom functoid that I'm implementing.
> It is configured to take a ConnectionType.Record as input parameter.
>
> But how do I specify my functoid function to take such a type as parameter?
> I have tried the XmlNode type but without succeeding.
>
> Any ideas? Thanks!
>
>

Samuel L

2005-12-22, 7:48 am

Thanks for your help Selvan...

I tried, but it did not work either!


"Selvan" wrote:
[vbcol=seagreen]
> Samuel,
>
> Did you tried the function parameter with
> System.Xml.XPath.XPathNodeIterator ?.
>
> Hope this would work.
>
> Cheers,
> Selvan.
>
> "Samuel L" wrote:
>
Selvan

2005-12-22, 7:48 am

Samuel,

Arguments and return values defined by the script functiods must be one
of the W3C XPath or XSLT types,

..NET Type equalent to XML Result Tree - System.Xml.XPath.XPathNavigator
..NET Type equalent to XML Node Set - System.Xml.XPath.XPathNodeIterator

So i expected it should work.. Unfortunatly not.. Can you brief more info
about your functoids? or code?

Selvan.


"Samuel L" wrote:
[vbcol=seagreen]
> Thanks for your help Selvan...
>
> I tried, but it did not work either!
>
>
> "Selvan" wrote:
>
Samuel L

2005-12-22, 7:48 am

Ok, thanks...

I have implemented an example custom functoid that takes two strings and
returns a concatenation of them. This works fine. The function that this
functoid calls takes two strings as input parameters.

Now I try to change this example functoid so that it can take a record and
process it as a node set. I add an input parameter of type
ConnectionType.Record in the functoid constructor. But then I don't know what
type the function parameter shall be. I have tried the one that you
suggested, but when testing the map the compiler tells me that "Cannot
convert the operand to NodeSet".

I declared my function to take an Object as parameter. Then it works to test
the map. The thing is that the object which is passed to the functoid
function is of string type (according to the GetType method). This seems
weird to me.

Any comments or ideas are appreciated! Thanks!


"Selvan" wrote:
[vbcol=seagreen]
> Samuel,
>
> Arguments and return values defined by the script functiods must be one
> of the W3C XPath or XSLT types,
>
> .NET Type equalent to XML Result Tree - System.Xml.XPath.XPathNavigator
> .NET Type equalent to XML Node Set - System.Xml.XPath.XPathNodeIterator
>
> So i expected it should work.. Unfortunatly not.. Can you brief more info
> about your functoids? or code?
>
> Selvan.
>
>
> "Samuel L" wrote:
>
Selvan

2005-12-22, 5:55 pm

Samuel,
I could not able to create and run through the problem that you are
facing, since my laptop is corrupted. but i try to change the Functoid
category to cumulative. Not sure you get output.

this.Category =FunctoidCategory.Cumulative;
I will try my level best..

Cheers,
Selvan.




"Samuel L" wrote:
[vbcol=seagreen]
> Ok, thanks...
>
> I have implemented an example custom functoid that takes two strings and
> returns a concatenation of them. This works fine. The function that this
> functoid calls takes two strings as input parameters.
>
> Now I try to change this example functoid so that it can take a record and
> process it as a node set. I add an input parameter of type
> ConnectionType.Record in the functoid constructor. But then I don't know what
> type the function parameter shall be. I have tried the one that you
> suggested, but when testing the map the compiler tells me that "Cannot
> convert the operand to NodeSet".
>
> I declared my function to take an Object as parameter. Then it works to test
> the map. The thing is that the object which is passed to the functoid
> function is of string type (according to the GetType method). This seems
> weird to me.
>
> Any comments or ideas are appreciated! Thanks!
>
>
> "Selvan" wrote:
>
Samuel L

2005-12-22, 5:55 pm

Ok, thanks Selvan...

I will try this after the Christmas! =)
But do you think it will make such a change? Isn't just the category telling
under which tab the functoid will appear? But it would be wonderful if you
were right!

Thanks again! I will get back when I've tried...


"Selvan" wrote:
[vbcol=seagreen]
> Samuel,
> I could not able to create and run through the problem that you are
> facing, since my laptop is corrupted. but i try to change the Functoid
> category to cumulative. Not sure you get output.
>
> this.Category =FunctoidCategory.Cumulative;
> I will try my level best..
>
> Cheers,
> Selvan.
>
>
>
>
> "Samuel L" wrote:
>
Leonid Ganeline

2005-12-23, 2:49 am

As I know the functoids can get only value or name of the element oa
attribut. Not records.
If you want to use records you have to use XSLT.
That's it.

--

Regards,

Leonid Ganeline
BizTalk Developer, MCSD
http://geekswithblogs.net/leonidganeline/
"Samuel L" <SamuelL@discussions.microsoft.com> wrote in message
news:C3342258-70D9-42F9-8D73-33A2D5C9BD81@microsoft.com...[vbcol=seagreen]
> Ok, thanks...
>
> I have implemented an example custom functoid that takes two strings and
> returns a concatenation of them. This works fine. The function that this
> functoid calls takes two strings as input parameters.
>
> Now I try to change this example functoid so that it can take a record and
> process it as a node set. I add an input parameter of type
> ConnectionType.Record in the functoid constructor. But then I don't know
> what
> type the function parameter shall be. I have tried the one that you
> suggested, but when testing the map the compiler tells me that "Cannot
> convert the operand to NodeSet".
>
> I declared my function to take an Object as parameter. Then it works to
> test
> the map. The thing is that the object which is passed to the functoid
> function is of string type (according to the GetType method). This seems
> weird to me.
>
> Any comments or ideas are appreciated! Thanks!
>
>
> "Selvan" wrote:
>


Samuel L

2005-12-25, 7:47 am

Thanks Leonid!

> As I know the functoids can get only value or name of the element oa attribut

Ok, but how do I get the element name as input to the functoid?

Thanks for help and comments!

Merry Christmas!



"Leonid Ganeline" wrote:

> As I know the functoids can get only value or name of the element oa
> attribut. Not records.
> If you want to use records you have to use XSLT.
> That's it.
>
> --
>
> Regards,
>
> Leonid Ganeline
> BizTalk Developer, MCSD
> http://geekswithblogs.net/leonidganeline/
> "Samuel L" <SamuelL@discussions.microsoft.com> wrote in message
> news:C3342258-70D9-42F9-8D73-33A2D5C9BD81@microsoft.com...
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com