|
-
Jun 2nd, 2006, 09:06 PM
#1
Thread Starter
New Member
Creating a Web Reference to WSDL in PHP
I have some code that I'm converting from VB into PHP that refers to the a class called Outbound. I was told Outbound is merely a reference to a WSDL (for example http://www.mydomain.com/mywsdl.wsdl). How can I create this reference in PHP so I can use this class?
Also, as a bonus, once I have access to it, how can I translate the following vb code into PHP:
Dim CallItemObject As New Outbound.CallItem
CallItemObject.siteNumber = SiteNumber
Dim WebServiceCall As New Outbound.OutboundCallService
placecallresponse = WebServiceCall.placeCall(placecallobject)
ANY help on this would be tremendously appreciated.
-
Jun 2nd, 2006, 09:30 PM
#2
Fanatic Member
Re: Creating a Web Reference to WSDL in PHP
-
Jun 3rd, 2006, 05:57 PM
#3
Re: Creating a Web Reference to WSDL in PHP
In theory, this should be possible with the PHP SOAP extension. (Requires PHP 5.)
http://www.php.net/manual/en/ref.soap.php
Something like this:
PHP Code:
$remoteObject = new SoapClient('http://www.mydomain.com/mywsdl.wsdl');
$remoteObject->someMethod();
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jun 4th, 2006, 03:56 AM
#4
Re: Creating a Web Reference to WSDL in PHP
PEAR also has a SOAP implementation. Niether actually create the supporting types. But if you wait a few days I'll post a link to my next article on PHP Builder that demonstrates how to automatically create the supporting types and extend them.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|