English 中文(简体)
具有阵容参数的网络服务和方法
原标题:Web services and methods with array parameters

I m试图从报告服务处总结2005年报告,以便我能够代表Windows Auth Services日志认证域名。

2005年报告的定义

SetExecutionParameters(ParameterValue[] Parameters, string ParameterLanguage)

但是,当I在方法签名中以任何形式,甚至显示[],service汇编了罚款,但当我试图在银星项目中确立服务参考资料时,VS2010年有其灵魂,没有产生参考代码。

很显然,can使用阵列参数,报告Execution2005年就是如此,而VS2010则可以参考。

一旦我从参数名单上删除阵列成员,就停止了 mo和工作。 谁能向我解释一下这里的情况?

如果我能够找到这个部分的话,我还需要在SL4 RIA的口号中提供报告员等同功能——我用数字在母子网页上积极创建IFRAME,确定持单人控制的小针,并积极调整IFRAME的地位和Z-order,使之达到“在”地主小组中的超声。

我计划将其全部归为控制,并在Microsoft接手为银星制作《报告书记》。 其余部分是操纵报告服务,退还已提交报告的tes。 我可以直接在客户中查阅报告服务,但不需要全权证书进行回程。

在确定过失性质的过程中,我采用了一种假日方法的简化服务,并逐步增加一个参数,在问题发生之前建造服务并尝试添加服务。

问题一经确定阵列参数就立即发生。 我确信,它是一个阵列,而不是阵列的类型,因为即使阵列类型是像扼杀一样的内在类型,这一问题就会出现者,这无疑是服务器和客户都知道的。

这极为令人费解,因为阵列参数得到明确的支持——其他服务成功地使用这些参数。 这是错误的信息:

Custom tool error: Failed to generate code for the service reference 
 ServiceReference1 .  Please check other error and warning messages for details.

没有其他错误信息。 有半个警告,但大多数警报也发生在成功进口网络服务方面。

Custom tool warning:
  Cannot import wsdl:portType
Detail:
  An exception was thrown while running a WSDL import extension:
  System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error:
  Exception has been thrown by the target of an invocation.
XPath to Error Source: 
  //wsdl:definitions[@targetNamespace=  ]/wsdl:portType[@name= RS2010 ]
  C:...ServiceReference1Reference.svcmap

Custom tool warning:
  Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
  C:atomSilverlightArgentService ReferencesRS2005Reference.svcmap

Custom tool warning:
  Cannot import wsdl:binding
Detail:
  There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: 
  //wsdl:definitions[@targetNamespace=  ]/wsdl:portType[@name= RS2010 ]
XPath to Error Source: 
  //wsdl:definitions[@targetNamespace= http://tempuri.org/ ]/wsdl:binding[@name= CustomBinding_RS2010 ]
  C:atomSilverlightArgentService ReferencesServiceReference1Reference.svcmap

Custom tool warning:
  Cannot import wsdl:port
Detail: 
  There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: 
  //wsdl:definitions[@targetNamespace= http://tempuri.org/ ]/wsdl:binding[@name= CustomBinding_RS2010 ]
XPath to Error Source: 
  //wsdl:definitions[@targetNamespace= http://tempuri.org/ ]/wsdl:service[@name= RS2010 ]/wsdl:port[@name= CustomBinding_RS2010 ]
  C:atomSilverlightArgentService ReferencesServiceReference1Reference.svcmap
最佳回答

请您发言。 Configure Service Reference... on theail reference, and change from 参考文件 重新使用特定参考文件的类型,然后删除System.Component Model.DataAnnotations System. Windows.Browser 你们会发现问题已经消失。

至少是我的三边例子。 更细致的服务可能更微妙。

您可以首先利用先进纽芬兰语确定这些除外情况。 我总是忘记,在我出现错误后,使用<>公平>。

问题回答

你们需要界定一系列参数,然后通过。 并不是一个阵列。

......

ParameterValue[] paramarray = new ParameterValue[n];

--set them

paramarray[0] = new ParameterValue();
paramarray[0].Label = "Text";
paramarray[0].Name = "Key";
paramarray[0].Value = "1";

...

paramarray[n] = new ParameterValue();
paramarray[n].Label = "Text";
paramarray[n].Name = "Key";
paramarray[n].Value = "100";


...SetExecutionParameters(paramarray, "en-us");




相关问题
Silverlight Rich text box control

Our team decided that we need our own custom Rich text box control for Silverlight app we are developing. We looked at existing controls mentioned at A good rich text control for Silverlight but ...

Silverlight ImageBrush not rendering (with Bing Map Control)

I m trying to add an image to a Pushpin instance from the Silverlight Bing Map Control, but I can t seem to get it to render (the pushpin renders fine). This is probably a general WPF question rather ...

Silverlight OpenFileDialog DoEvents equivalent

I m processing large files after they are selected by the user. My code looks like the following: if (FileDialog.ShowDialog() == true) { // process really big file } This freezes up the UI so ...

list of controls with templates in silverlight

Does anyone know where to find a list of controls that you can set the template on in Silverlight? I ve wasted several hours now trying to create control templates only to find that the control doesn ...

Silverlight, Updating the UI during processing

I have a simple silverlight multifile upload application, and i want to provide the user with some feedback, right now its only in a test phase and i dont have the webservice. Somehow i cant get the ...

Silverlight 3 - FindName returns null

This looks a bug to me.. Using Silverlight 3 and i have a user control defined in XAML and trying to access the object during runtime returns a null. <Grid> <common:CommonGridEditPanel x:...

silverlight 3 collection binding

Someone please help me understand why this binding does not work... I have a class called SelectionManager with a property called dates which is populated by a WCF service. The property is an ...

热门标签