0

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 know 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 ?
John Saunders
  • 159,224
  • 26
  • 237
  • 393
DarthVader
  • 49,515
  • 70
  • 199
  • 295

2 Answers2

2

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
Community
  • 1
  • 1
Forgotten Semicolon
  • 13,382
  • 1
  • 47
  • 61
1

Please see: Consuming Web services in PHP

Mitch Wheat
  • 288,400
  • 42
  • 452
  • 532