在nuSOAP中,如何返回多次出现的简单数据类型作为响应?
假设我的响应消息可以像这样
<Response>
<ResponseCode>false</ResponseCode>
<ResponseMessage>reason 1</ResponseMessage>
<ResponseMessage>reason 2</ResponseMessage>
<ResponseMessage>reason 3</ResponseMessage>
</Response>
this (xsd:string) 项目多次出现。
如何在nuSOAP服务器中添加和配置这种响应消息?
提前致谢 :)
Suppose my response message can be like this
<Response>
<ResponseCode>false</ResponseCode>
<ResponseMessage>reason 1</ResponseMessage>
<ResponseMessage>reason 2</ResponseMessage>
<ResponseMessage>reason 3</ResponseMessage>
</Response>
this (xsd:string) item is having multiple occurance.
How to add and configure this kind of rsponse message in nuSOAP server?
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在另一个论坛上找到了这个例子。它帮助我解决了多个元素的类似问题:
NuSOAP 采用重复的“car”是一个数组的方法,因此
关联数组中的“car”元素指向一个简单数组:
I found this example on another forum. It helped me solving a similar issue with multiple elements:
NuSOAP takes the approach that "car", which is repeated, is an array, so
the "car" element in the associative array points to a simple array: