consume ASP.NET web service with PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt

    #1

    consume ASP.NET web service with PHP

    I have an ASP.NET service that needs to be consumed on a PHP page. I
    can not count on the PHP server to have SOAP. I have read some info
    about a REST method, but I am not really sure if this can be
    applicable. Help please!!!!

    Matt

  • Justin Koivisto

    #2
    Re: consume ASP.NET web service with PHP

    Matt wrote:
    [color=blue]
    > I have an ASP.NET service that needs to be consumed on a PHP page. I
    > can not count on the PHP server to have SOAP. I have read some info
    > about a REST method, but I am not really sure if this can be
    > applicable. Help please!!!![/color]

    I for one don't actually know what is involved with the ASP.NET
    services. I'd assume that it's communicating via XML in some way?
    Perhaps if you gave a little more information about the expected
    behavior of the php script, you'd be able to get some help from some of
    us. (Especially since I am just rebuilding a server or two today...) ;)

    --
    Justin Koivisto, ZCE - justin@koivi.co m

    Comment

    • Matt

      #3
      Re: consume ASP.NET web service with PHP

      Alright, the asp.net web service creates an xml based document called a
      WSDL i believe. Not positive but i think this is what is used to
      consume it in PHP. This web service will simply query a database. All
      the PHP page has to do is pull the info as a string and display it
      somewhere on the page. Does this help any?

      Comment

      • Justin Koivisto

        #4
        Re: consume ASP.NET web service with PHP

        Matt wrote:
        [color=blue]
        > Alright, the asp.net web service creates an xml based document called a
        > WSDL i believe. Not positive but i think this is what is used to
        > consume it in PHP. This web service will simply query a database. All
        > the PHP page has to do is pull the info as a string and display it
        > somewhere on the page. Does this help any?[/color]

        Does PHP query the WSDL file, or does the ASP service query the PHP
        script? If ASP is making a request to the PHP script, then it should
        just be a matter of using the parameters to generate the output. If PHP
        is making a request to the WSDL, then you'd have to parse the file,
        generate the output, then send it to the destination whether that be
        simply printing it out or using something like curl to send it elsewhere.

        I've never worked with ASP or .NET (at all), so I don't know exactly
        what needs to be done. You may also want to take a look at the dotnet
        extension for PHP: http://us3.php.net/dotnet (especially the
        user-submitted comments).

        HTH

        --
        Justin Koivisto, ZCE - justin@koivi.co m

        Comment

        Working...