Thursday, February 28, 2008

WSDL to PHP Classes

If you look at the PHP SOAP mailing list, most of user problems are related to complex types in WSDL. One big usability drawback of PHP SOAP extension is it does not have good tools to generate PHP classes from the WSDL at hand (contract first approach). Now, you no longer need to worry about it, as WSF/PHP team is working on a static code generation tool [More info in PHP WS blog]. Good news is that it comes to you free of charge. I think this will greatly enhance user experience with PHP Web Services. They are planning to have an initial cut of the tool in version 1.2.1. Nightly builds and svn should give you an snapshot of it. With the pace of development going on with WSF/PHP, there is a high possibility of having it as a standard PHP extension in the near future.

20 comments:

Unknown said...

Hello,


I would suggest you to test this library delvelopped on my own :http://sourceforge.net/projects/wsdltophp/, also available here : https://github.com/mikaelcom/WsdlToPhp

Best regards

Unknown said...
This comment has been removed by the author.
Unknown said...

Hi,
If you're always interested by this subject, you may visite www.wsdltophp.com which is the online tool to use the library WsdlToPhp,

Regards

Anonymous said...

Within this generated class ...
class UATServiceLogin extends UATWsdlClass

I had to change this ...
$this->setResult(self::getSoapClient()->Login($_UATStructLogin->getUsername(),$_UATStructLogin->getPassword(),$_UATStructLogin->getPartnerCode()));

to this ...
$this->setResult(self::getSoapClient()->__soapCall('Login', array($_UATStructLogin)));

in order to make it work. Any ideas why it would not work the way it was generated?

Unknown said...

Maybe because options are available to customize the way classes are generated and the way calls are sent. In your case, it seems that the option that send the request as an array has been disabled. Can you tell me more about the package, where does it come from, etc?

Anonymous said...

Here is the wsdl I'm working with: https://manageruat.flexnetoperations.com/service/snetmgr/services/SubscribeNet/wsdl/SubscribeNet.wsdl. I've been able to Login (with the changes mentioned). But I'm having a heck of a time initializing the SubscribeNetObjectReference properly and doing a simple Find call.

Unknown said...

Fell free to send me more informations on https:www.wsdltophp.com/Contact so I'll be able to help you more ;)

sasitamil said...


This is quite educational arrange. It has famous breeding about what I rarity to vouch. Colossal proverb.
This trumpet is a famous tone to nab to troths. Congratulations on a career well achieved. This arrange is synchronous s informative impolites festivity to pity. I appreciated what you ok extremely here 


Selenium training in bangalore
Selenium training in Chennai
Selenium training in Bangalore
Selenium training in Pune
Selenium Online training

Jaweed Khan said...

Thanks For Sharing The Information The information Shared Is Very valuable Please keep updating us Time Just Went On reading The article Python Online Course AWS Online Course Devops Online Course DataScience Online Course

Tech Guy said...

Data Science training in bangalore, Visit:
Data Science training in bangalore

Tech Guy said...

For Blockchain training in bangalore, Visit:
Blockchain training in bangalore

eTechno Soft Solutions said...

I am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing. Great efforts.

Best Microsoft Training in Bangalore for Microsoft, we provide the Microsoft training project with trainers having more than 5 Years of Microsoft training experience, we also provide 100% placement support.

Jenifer said...

Very nice information, it is valuable and useful to so many people. It gives the beautiful knowledge especially to the technical people.

microsoft training in bangalore

microsoft training institutes in bangalore

microsoft course content

microsoft training centres in bangalore

microsoft course syllabus

microsoft training


Jenifer said...

It was a very good experience,Faculty members are very knowledgeable and cooperative. Specially My trainer teaching more as he focused upon practical rather than theory. All together it was an enlightening and informative course.

microsoft training and placement support in bangalore

microsoft training free demo class

microsoft placement bangalore

microsoft online training

microsoft classroom training

microsoft training with lab facilities

microsoft training with certified and experienced trainers

Jayalakshmi said...

Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us.
hadoop training in chennai

hadoop training in tambaram

salesforce training in chennai

salesforce training in tambaram

c and c plus plus course in chennai

c and c plus plus course in tambaram

machine learning training in chennai

machine learning training in tambaram

shiny said...

It is really very helpful for us and I have gathered some important information from this blog.Keep Sharing.

web designing training in chennai

web designing training in annanagar

digital marketing training in chennai

digital marketing training in annanagar

rpa training in chennai

rpa training in annanagar

tally training in chennai

tally training in annanagar


jeni said...

Outstanding blog post, I have marked your site so ideally I’ll see much more on this subject in the foreseeable future.
data science training in chennai

data science training in velachery

android training in chennai

android training in velachery

devops training in chennai

devops training in velachery

artificial intelligence training in chennai

artificial intelligence training in velachery

deiva said...

I have read your blog its very attractive and impressive. I like it your blog.
sap training in chennai

sap training in omr

azure training in chennai

azure training in omr

cyber security course in chennai

cyber security course in omr

ethical hacking course in chennai

ethical hacking course in omr

James Williams said...

Great Post, thanks for sharing informative information.
PHP Online Training
PHP Online Course
PHP Online Training in chennai

Keerthi55 said...


data science training
python training
angular js training
selenium trainings
java training