Web服务接收空数据 [英] Webservice receiving null data
本文介绍了Web服务接收空数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我面临一个非常奇怪的问题.我的Web服务正在接收空"数据作为参数.
一个简短的介绍:我已经创建了一个接受XML作为字符串的Web服务.我正在使用cURL来使用SOAP调用该服务"
另一个奇怪的事情是:当我使用相同的Web服务源代码创建一个新项目时,不会出现空数据的问题."
该Web服务已经部署在实时服务器上,为了避免出现问题,我无法继续创建新项目.
需要建议!
Hi,
I''m facing a very weird problem. My web-service is receiving ''null'' data as parameter.
A little intro: "I have created a web-service that accepts XML as string. I''m using cURL to call the service using SOAP"
Another weird thing is: "When I create a new project with the same web-service source code, the problem of null data doesn''t appear."
The web-service is already deployed on the live server and I cannot keep creating new projects just to avoid the problem.
Need suggestions!
推荐答案
我唯一能建议的就是确保您的客户端应用正确连接,并且实际上在发送您认为的数据您正在发送.
The only thing I can suggest is that you make sure your client app is connecting correctly and that you''re actually sending the data that you think you''re sending.
这篇关于Web服务接收空数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文