发送正确的XML,接收空的XML [英] Send Correct XML, Receive Empty XML

查看:95
本文介绍了发送正确的XML,接收空的XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定这是否是发布的正确部分.我正在制作VB.NET程序(老板命令).其他人正在编写存储过程,该存储过程向我提供了一个XML文件,其中包含我请求的数据.在我的应用程序中,我调用了存储过程,在服务器端,我们可以看到发送了正确的XML,但是我收到了一个空的< root>.标签.

对这可能是什么有什么想法吗?

在我的(VB)端给出代码的想法:

I''m not sure if this is the right section to post it in. I''m making a VB.NET program (boss'' orders). Somebody else is writing stored procedures which gives me an XML file with the data I request. In my application I call the the stored procedure, on the server side we can see the correct XML being sent, but I receive one with empty <root> tags.

Any idea''s on what this could be?

To give an idea of the code on my (VB) end:

...
soapEnvelope = sendRequest(soapEnvelopeWithRequestedParameters, procdureToCall)
...


soapEnvelope包含我请求的数据.
soapEnvelopeWithRequestedParameters包含存储过程所需的参数.
procedureToCall包含需要调用的存储过程的名称.
sendRequest是一个函数,用于记录调用存储过程,获取参数,执行实际调用并返回接收到的XML文件的功能.它不会更改soap对象内部的任何内容.


soapEnvelope contains the data that I request.
soapEnvelopeWithRequestedParameters contains the parameters the stored procedure needs.
procedureToCall contains the name of the stored procedure that needs to be called.
sendRequest is a function that logs that a stored procedure is called, takes the parameters, does the actual call and returns the received XML file. It doesn''t change anything inside the soap objects.

推荐答案

您怎么知道您的代码不起作用?对方是否提供了其他证明的测试结果?在大多数情况下,会有一个测试页可用于测试目的. Web服务创建者如何才能知道其是否正常运行?他(或她)必须已经进行了一些测试,并且应该能够为您提供测试示例.它可能不是vb.net,但可以告诉您足够的信息来解决此问题.我的建议是首先与Web服务的开发人员联系.

看看测试Web服务":
http://www.west-wind.com/presentations/dotnetwebservices/DotNetWebServices.asp [ ^ ]

祝你好运!
How do you know that your code doesn''t work? Did the other person supply any test results that prove otherwise? In most cases there is a test page that can be used for test purposes. How could the web service creator otherwise know if it is functioning properly? He (or she) must have done some testing and should be able to provide you an example of what was done to test it. It might not be vb.net but could tell you enough to solve this problem. My advice would be to get in touch with the developer of the webservice first.

Have a look at "testing the webservice":
http://www.west-wind.com/presentations/dotnetwebservices/DotNetWebServices.asp[^]

Good luck!


这篇关于发送正确的XML,接收空的XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆