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
  • 160,644
  • 26
  • 247
  • 397
DarthVader
  • 52,984
  • 76
  • 209
  • 300

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,909
  • 2
  • 51
  • 61
1

Please see: Consuming Web services in PHP

Mitch Wheat
  • 295,962
  • 43
  • 465
  • 541