Kum*_*mar 6 php c# soap visual-studio-2012 windows-phone-8
我正在为visual phone 2012 for windows phone工作windows phone项目.我正在尝试通过添加使用PHP NuSOAP webservice Service reference.
在这里,我关注了这个示例应用 通常,VS将Reference.cs在添加webservice时创建文件.你可以看到reference.cs文件字典的内容(样本)应用HERE
该Reference.cs我的我的项目的web服务的这里.在我的Reference.cs文件中,接口SomeMobileServicePortType为空.
在第19行.
public interface SomeMobileServicePortType {
}
Run Code Online (Sandbox Code Playgroud)
因此,我没有获得任何webservice方法来访问我的项目.但是在其中添加引用时Add service Refernce dialogue显示PHP NuSOAP webservice中包含的方法.
我创建了webservice类的新实例..
ServiceReference1.SomeMobileServicePortTypeClient client = new ServiceReference1.SomeMobileServicePortTypeClient();
Run Code Online (Sandbox Code Playgroud)
PHP webservice有什么问题.我尝试了一些更多的webservices [特别是asmx,我没有得到任何样本的PHP NuSOAP webservice来试试]哪些工作正常.任何人都可以告诉我如何使用C#使用PHP NuSOAP服务.
================================================== ================================
编辑:
我们正在使用NuSOAP PHP webservice.
我相信Webservice没有问题.我现在无法共享WSDL文件.
在这里,我得到了在C#中使用PHP NuSOAP解释的示例.我试过这个 webservice链接.这个参考也没有给出任何方法.这样的界面是空的.
public interface HirdWebExamplePortType { }
Run Code Online (Sandbox Code Playgroud)
所以我的猜测是在使用NuSOAP服务时,它无法在IDE Visual Studio中运行. 这是我的示例Windows Phone项目.请试试这个并建议我做错了什么.
您提供的项目与此类 SOAP 服务不兼容。
如果您将该服务添加到例如控制台应用程序,它可以正常工作:

但如果你将它添加到你的项目(WP Silverlight)中:

检查是否可以在服务上禁用 SOAP 编码。
| 归档时间: |
|
| 查看次数: |
2267 次 |
| 最近记录: |