471,624 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,624 software developers and data experts.

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

Aug 8 '05 #1
3 7051
Matt wrote:
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!!!!


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 - ju****@koivi.com
http://koivi.com
Aug 8 '05 #2
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?

Aug 8 '05 #3
Matt wrote:
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?


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 - ju****@koivi.com
http://koivi.com
Aug 8 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Abeslom via .NET 247 | last post: by
reply views Thread by leslie_tighe | last post: by
5 posts views Thread by David Lozzi | last post: by
3 posts views Thread by frustratedcoder | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.