Results 1 to 4 of 4

Thread: Creating a Web Reference to WSDL in PHP

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    1

    Exclamation 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.

  2. #2
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: Creating a Web Reference to WSDL in PHP

    welcome to the forums...
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width