开发者

Invoking .Net Web Service with Php

开发者 https://www.devze.com 2022-12-08 14:09 出处:网络
I have a C#.Net Web Service and php client to invoke the web service. Web Service Methods takes C# objects as parameters and returns C# objects as follows

I have a C#.Net Web Service and php client to invoke the web service.

Web Service Methods takes C# objects as parameters and returns C# objects as follows

Site getSite(siteID){ return Site.load(siteID) } 

or

void newSite(Site site){ site.save(); }

I k开发者_Go百科now that WSDL tool generates c# classes and java has code generator for web services.

  • How can I invoke this services with Php?
  • Is there any utilities, libraries, such as Pear, or any framework, like Zend, generates code for Php ?
  • If I make the Objects in Php, and initialize them, then can i pass them to service calls and would that work?
  • Should they be serialized ?


Here is a previous question on SO: How to easily consume a web service from PHP

You can get to the wsdl of the .NET webservice by going to a url formed like the following:

http://url/service.asmx?wsdl

http://url/service.svc?wsdl


Please see: Consuming Web services in PHP

0

精彩评论

暂无评论...
验证码 换一张
取 消