Kyor Posted September 26, 2011 Share Posted September 26, 2011 Hi, A consumer give me WSDL that describe SOAP messages in order to communicate together by Web services. The first WSDL is a webservice that I consume, no problem for this part. But the second one must be implemented in our side, a wsdl is provided to describe the ws that we must develop. The problem is that I don't know how to do? Is a tool exist to generate server code from a wsdl? should I develop from scratch and try to match the wsdl? Any clue will be welcome. Regards, Kyor Quote Link to comment https://forums.phpfreaks.com/topic/247880-server-code-from-a-wsdl/ Share on other sites More sharing options...
Adam Posted September 26, 2011 Share Posted September 26, 2011 soapUI has a feature built-in that will generate request XML templates for you. Quote Link to comment https://forums.phpfreaks.com/topic/247880-server-code-from-a-wsdl/#findComment-1272847 Share on other sites More sharing options...
Kyor Posted September 26, 2011 Author Share Posted September 26, 2011 I already use SoapUI, it's very useful to perform test but I'm looking for a Wsdl2Code tool that generate server Side skeleton in php? Quote Link to comment https://forums.phpfreaks.com/topic/247880-server-code-from-a-wsdl/#findComment-1272859 Share on other sites More sharing options...
Adam Posted September 26, 2011 Share Posted September 26, 2011 Look into the "SOAP" extension - it makes handling requests easy. Using that and the XML tempalte soapUI will generate for you, it's just a case of putting it all together. Quote Link to comment https://forums.phpfreaks.com/topic/247880-server-code-from-a-wsdl/#findComment-1272861 Share on other sites More sharing options...
Kyor Posted September 26, 2011 Author Share Posted September 26, 2011 What do you call "handling requests" ? I'm sorry but I'm novice in WS development Quote Link to comment https://forums.phpfreaks.com/topic/247880-server-code-from-a-wsdl/#findComment-1272874 Share on other sites More sharing options...
Adam Posted September 26, 2011 Share Posted September 26, 2011 The SOAP extension provides a set of classes that make it easy to send SOAP requests, and then returns the response. In particular, take a look at SoapClient. There's a few examples posted by users that will probably help you. Try and read it to understand it, and not just cut and paste the code. Will be far more beneficial for you... Quote Link to comment https://forums.phpfreaks.com/topic/247880-server-code-from-a-wsdl/#findComment-1272885 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.