BizTalk Server General - Creating repeating elements from a functoid

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > July 2005 > Creating repeating elements from a functoid





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 Creating repeating elements from a functoid
danscarfe

2005-07-27, 5:52 pm

Is there any way I can have a functoid output complete elements to drop into
a destination schema rather than values to fill an element?

I have tried changing the functoid to return an XmlDocument and
XmlDataDocument, but it appears to just execute .ToString() on these so I
just see the text, none of the tags. If I get it to return a string which
contains xml it urlencodes the string before injecting it into the element:

1 (returning string containing xml) <ns0:CreditSearchResponse
xmlns:ns0="http://MoneyPort.BizTalk.Equifax.Schemas.CreditSearchResponse"><Insight><Insight><Month><Number>20</Number><Arrears>10</Arrears><MatchType>MatchType_0</MatchType></Month><Month><Number>10</Number><Arrears>10</Arrears><MatchType>MatchType_0</Mat
chType></Month></Insight></Insight></ns0:CreditSearchResponse>


2 (returning xmldocument/xmldatadocument) ns0:CreditSearchResponse
xmlns:ns0="http://MoneyPort.BizTalk.Equifax.Schemas.CreditSearchResponse">
<Insight>3010MatchType_01010MatchType_0</Insight>
</ns0:CreditSearchResponse>

Anyone know how to get anything other than a simple data type out of a
functoid or do I have to resort to inline xslt?

danscarfe

2005-07-27, 5:52 pm

first example in a textarea this time so you can see:

<textarea> <ns0:CreditSearchResponse
xmlns:ns0="http://MoneyPort.BizTalk.Equifax.Schemas.CreditSearchResponse"><Insight><Insight><Month><Number>20</Number><Arrears>10</Arrears><MatchType>MatchType_0</MatchType></Month><Month><Number>10</Number><Arrears>10</Arrears><MatchType>MatchType_0</Mat
chType></Month></Insight></Insight></ns0:CreditSearchResponse> </textarea>

"danscarfe" wrote:

> Is there any way I can have a functoid output complete elements to drop into
> a destination schema rather than values to fill an element?
>
> I have tried changing the functoid to return an XmlDocument and
> XmlDataDocument, but it appears to just execute .ToString() on these so I
> just see the text, none of the tags. If I get it to return a string which
> contains xml it urlencodes the string before injecting it into the element:
>
> 1 (returning string containing xml) <ns0:CreditSearchResponse
> xmlns:ns0="http://MoneyPort.BizTalk.Equifax.Schemas.CreditSearchResponse"><Insight><Insight><Month><Number>20</Number><Arrears>10</Arrears><MatchType>MatchType_0</MatchType></Month><Month><Number>10</Number><Arrears>10</Arrears><MatchType>MatchType_0</M

atchType></Month></Insight></Insight></ns0:CreditSearchResponse>
>
>
> 2 (returning xmldocument/xmldatadocument) ns0:CreditSearchResponse
> xmlns:ns0="http://MoneyPort.BizTalk.Equifax.Schemas.CreditSearchResponse">
> <Insight>3010MatchType_01010MatchType_0</Insight>
> </ns0:CreditSearchResponse>
>
> Anyone know how to get anything other than a simple data type out of a
> functoid or do I have to resort to inline xslt?
>

danscarfe

2005-07-27, 5:52 pm

ok still didn't work - you'll have to take my word for it, it is urlencoded

"danscarfe" wrote:

> first example in a textarea this time so you can see:
>
> <textarea> <ns0:CreditSearchResponse
> xmlns:ns0="http://MoneyPort.BizTalk.Equifax.Schemas.CreditSearchResponse"><Insight><Insight><Month><Number>20</Number><Arrears>10</Arrears><MatchType>MatchType_0</MatchType></Month><Month><Number>10</Number><Arrears>10</Arrears><MatchType>MatchType_0</M

atchType></Month></Insight></Insight></ns0:CreditSearchResponse>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com