WSDL和可选参数 [英] WSDL and Optional Parameters
问题描述
因为没有办法用可选或可空的
参数创建ac#方法。
因为你不能编写一个重载的web方法。
是否可以结合ac#方法编辑WSDL来制作
参数可选的,或者在客户消费者处有默认值?
-
http://kentpsychedelic.blogspot.com/
更新于8/8/04
< blockquote>嗨为什么,
您点击了:<<
因为没有办法用可选的方法创建ac#方法,
或可以为空的参数。 >>
没有sprintf(char *格式,......)?
您添加了:<<
因为你不能写一个重载的网络方法。 >>
这可能是真的吗?我不相信。
您问:<<
是否可以编辑WSDL [.XML文件]
与ac#方法相结合
使参数可选,
或在客户消费者处有默认值? >>
也许您可以通过解析
a字符串来模拟sprintf(),该字符串可以告诉您堆栈中的参数是什么......
什么是堆栈?我听你问。
这是一个动态的FILO队列,先进先出。
您可以通过以下方式创建动态FILO队列一个动态数组,
,指向堆栈的顶部和底部。
当然我会使用realloc()来管理动态数组。 ..
但我认为C#的自动分配
可以做类似的事情......也许使用VAR类型。
Jeff Relf写道:
但我认为C#的自动分配可以做类似的事情......也许使用VAR类型。
你咆哮并喷出acuneiform你想要这么多的ac#programmer所以你
可以得到一份工作。
但是让我告诉你 - 只有一种真正的语言:涂鸦2和它是掌上电脑操作系统的一部分。我花了整个周末学习一点点楔形文字符号,这非常酷。
我可以将Linux与KPilot同步 - 没问题。 />
-
http://kentpsychedelic.blogspot .com /
更新时间:8/8/04
2004年8月9日08:29:33 GMT,Jeff Relf写道:
但我认为C#的自动分配可以做类似的事情......可能使用VAR类型。
>
..NET有一个Stack类:
Stack s = new Stack();
s.Push(42);
int i =(int)s.Pop();
Since there''s no way to create a c# method with optional, or nullable
parameters.
And since you can''t write an overloaded web method.
Is it possible to edit the WSDL in conjunction with a c# method to make the
parameter optional, or have a default value at the client consumer?
--
http://kentpsychedelic.blogspot.com/
Updated 8/8/04
Hi WHY,
You tapped out: <<
Since there''s no way to create a c# method with optional,
or nullable parameters. >>
No sprintf ( char * Format, ... ) ?
You added: <<
And since you can''t write an overloaded web method. >>
Could that be true ? I don''t believe it.
You asked: <<
Is it possible to edit the WSDL [ .XML file ]
in conjunction with a c# method
to make the parameter optional,
or have a default value at the client consumer ? >>
Perhaps you could emulates sprintf() by parsing
a string that tells you what parameters are on the stack...
What''s a stack ? I hear you asking.
It''s a dynamic FILO queue, First In Last Out.
You could create a dynamic FILO queue via a dynamic array,
with pointers to the top and the bottom of the stack.
Of course I would use realloc() to manage a dynamic array...
But I think C#''s automatic allocations
could do something similar... perhaps using the VAR type.
Jeff Relf wrote:
But I think C#''s automatic allocations
could do something similar... perhaps using the VAR type.
You rant and spew acuneiform you want so much to be a c# programmer so you
can get a job.
But let me tell you -- there is only one real language: Graffiti 2 and it''s
part of the Palm OS. I spend the whole weekend learning the little
cuneiform symbols and it was very cool.
I can sync up Linux with KPilot -- no problem.
--
http://kentpsychedelic.blogspot.com/
Updated 8/8/04
On 9 Aug 2004 08:29:33 GMT, Jeff Relf wrote:
But I think C#''s automatic allocations
could do something similar... perhaps using the VAR type.
..NET has a Stack class:
Stack s = new Stack();
s.Push(42);
int i = (int)s.Pop();
这篇关于WSDL和可选参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!