如何在 C# Web 服务中定义 WebParameters,以便我的 WSDL 反映相同的内容?
我正在尝试生成 Web 参数,以便我的 WSDL 具有属性名称 目前,我的 Web 服务结果如下所示:
<ArrayOfAnyType>
<anyType xsi:type="ArrayOfAnyType">
<anyType xsi:type="xsd:string">A123</anyType>
<anyType xsi:type="xsd:string">FYP</anyType>
<anyType xsi:type="xsd:string">1.347821</anyType>
<anyType xsi:type="xsd:string">103.682924</anyType>
<anyType xsi:type="xsd:string">Simtech</anyType>
<anyType xsi:type="xsd:string">Simtech</anyType>
<anyType xsi:type="xsd:string">30/4/2009 6:08:37 AM</anyType>
<anyType xsi:type="xsd:string">100843.00</anyType>
<anyType xsi:type="xsd:string">simtech_order1</anyType>
</anyType>
How do I Define WebParameters in C# Web service so that my WSDL反映出相同的结果?
I am trying to generate web parameters so that my WSDL has the property names
Currently this is how my web service result looks:
<ArrayOfAnyType>
<anyType xsi:type="ArrayOfAnyType">
<anyType xsi:type="xsd:string">A123</anyType>
<anyType xsi:type="xsd:string">FYP</anyType>
<anyType xsi:type="xsd:string">1.347821</anyType>
<anyType xsi:type="xsd:string">103.682924</anyType>
<anyType xsi:type="xsd:string">Simtech</anyType>
<anyType xsi:type="xsd:string">Simtech</anyType>
<anyType xsi:type="xsd:string">30/4/2009 6:08:37 AM</anyType>
<anyType xsi:type="xsd:string">100843.00</anyType>
<anyType xsi:type="xsd:string">simtech_order1</anyType>
</anyType>
How do I define WebParameters in C# Web service so that my WSDL reflects the same?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在这里找到了答案!
它们不被称为网络参数或类似的东西。
它是一个元素名称。
http://forums.asp.net/t/1638752.aspx/1
I found the answer here!
They aren't called web parameters or anything like that.
Its an element name.
http://forums.asp.net/t/1638752.aspx/1