|
Home > Archive > BizTalk Server General > February 2005 > Custom 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]
|
|
|
| Hi,
I am creating simple functoid which concats strings with No input parameters
limit.
This functoid doesn't expose any inline code(direct method call)
Code:
this.HasVariableInputs = true;
this.SetMinParams(2);
And Method signature is:
ConcatString123(string val1,string val2, params string[] args)
{
}
If I test map using this functoid,I am getting this error
XSL transform error: XSLT function 'ConcatString123' has the wrong number of
arguments.
Can any one help me in this scenario.
Thanks in advance
Agan
| |
| Radim Hampel 2005-01-24, 2:47 am |
| > XSL transform error: XSLT function 'ConcatString123' has the wrong number of
> arguments.
Hi,
I've got exactly the same behaviour. Please, do anyone know answer to this
problem. Agan, did you solve it out already?
Thanks,
Radim
| |
| Gavin G. Jones 2005-02-11, 5:55 pm |
| Radim,
I'm 99.9% certain because the script engine must use Reflection to detect a
method match and can't signature match for a "params String[] plist" type
signature, that you can't do it using the SetExternalFunctionName call
Assembly method.
You must use the in-line method.
Code up your script via the GetInlineScriptBuffer. There's a numParams
parameter there.
I then used a loop to build up "ExecuteMyMethod( String s1, String s2,
String s3, etc.)"
Regards,
Gavin.
"Radim Hampel" <Radim Hampel@discussions.microsoft.com> wrote in message
news:FABDEE59-F9EE-4EDA-9759-57253F67ABBE@microsoft.com...
number of[vbcol=seagreen]
>
> Hi,
>
> I've got exactly the same behaviour. Please, do anyone know answer to this
> problem. Agan, did you solve it out already?
>
> Thanks,
> Radim
>
| |
| Tan Nguyen 2005-02-15, 5:50 pm |
| Yes, the mapper doesn't support having a variable number of parameters.
Look at the string concatenate functoid, the function in the generated XSLT
will have the exact number of input parameters as the number of input links
to the functoid.
Regards,
Tan Nguyen
Microsoft BizTalk Server
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Gavin G. Jones" <gavin@nospamgjit.com>
| References: <5AF60667-5DA3-496C-9A22-4337B6C1E22D@microsoft.com>
<FABDEE59-F9EE-4EDA-9759-57253F67ABBE@microsoft.com>
| Subject: Re: Custom Functoid
| Date: Fri, 11 Feb 2005 14:00:13 -0000
| Lines: 34
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Message-ID: <eeFPpKEEFHA.2232@TK2MSFTNGP14.phx.gbl>
| Newsgroups: microsoft.public.biztalk.general
| NNTP-Posting-Host: gavinjones.plus.com 80.229.11.32
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.biztalk.general:11099
| X-Tomcat-NG: microsoft.public.biztalk.general
|
| Radim,
|
| I'm 99.9% certain because the script engine must use Reflection to detect
a
| method match and can't signature match for a "params String[] plist" type
| signature, that you can't do it using the SetExternalFunctionName call
| Assembly method.
|
| You must use the in-line method.
|
| Code up your script via the GetInlineScriptBuffer. There's a numParams
| parameter there.
|
| I then used a loop to build up "ExecuteMyMethod( String s1, String s2,
| String s3, etc.)"
|
| Regards,
| Gavin.
|
| "Radim Hampel" <Radim Hampel@discussions.microsoft.com> wrote in message
| news:FABDEE59-F9EE-4EDA-9759-57253F67ABBE@microsoft.com...
| > > XSL transform error: XSLT function 'ConcatString123' has the wrong
| number of
| > > arguments.
| >
| > Hi,
| >
| > I've got exactly the same behaviour. Please, do anyone know answer to
this
| > problem. Agan, did you solve it out already?
| >
| > Thanks,
| > Radim
| >
|
|
|
|
|
|
|
|