This is a discussion on Implementing soap using PHP within the PHP Programming forums, part of the Web Development category; Hi Buddies Here is one simple example to create our own WSDL file PHP Code: <?php # HelloServerWsdl....
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi Buddies Here is one simple example to create our own WSDL file PHP Code: Falcon ![]() |
| Sponsored Links |
| |||
| Hi Buddies Above mention code will generate the following WSDL file Code: <?xml version="1.0"?>
<definitions name="MyDefinition" targetNamespace="urn:myTargetNamespace" xmlns:tns="urn:myTns" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<message name="myRequest">
<part name="reqParam" type="xsd:string"/>
</message>
<message name="myResponse">
<part name="resParam" type="xsd:string"/>
</message>
<portType name="MyPortType">
<operation name="hello">
<input message="tns:myRequest"/>
<output message="tns:myResponse"/>
</operation>
</portType>
<binding name="MyBinding" type="tns:MyPortType">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="hello">
<soap:operation soapAction=""/>
<input>
<soap:body use="encoded"
namespace="urn:myInputNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urn:myOutputNamespace"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="MyService">
<documentation>Returns a greeting string.
</documentation>
<port name="MyPort" binding="tns:MyBinding">
<soap:address
location="http://localhost/HelloServerWsdl.php"/>
</port>
</service>
</definitions> Falcon ![]() |
| |||
| Hi PHP Code: Regards Falcon ![]() |
| |||
| Hi, Thanks for the reply. where can we actually place wsdl document file on web server for a new web service?
__________________ With, J. Jeyaseelan Everything Possible |
| |||
| Hi You no need to give any particular location. You can place any where in your website. WSDL will placed in location as per your mention location while creating the object like $server = new SoapServer("http://localhost/login.wsdl", array('soap_version' => SOAP_1_2)); Regards Falcon ![]() |
| |||
| Hi Following DLL and EXE files are need to install the Soap Server
Falcon ![]() |
| |||
| Hi, Following steps are necessary to install the Apache soap Server
Falcon ![]() |
| |||
| Hi, Thanks for the reply for installation on SOAP server. How can SOAP application be differentiated with normal CURL functions?
__________________ With, J. Jeyaseelan Everything Possible |
| |||
| Hi Curl function return all the content of the page in String but SOAP return only the particular content like only the search results in XML format. Second thing we have to explode the string to get URL,TITLE DESCRIPTION etc in CURL function but In SOAP they are gave all the details in separate tags it is easy to get that details Regards Falcon ![]() |
| |||
| hi, So CURL is any way have differed lot from SOAP. While using with CURL, it is needed to have permission to read data from other servers?
__________________ With, J. Jeyaseelan Everything Possible |
| |||
| Hi While using CURL functions,we no need to get permission to read data from other servers.For SOAP only we need permission from that particular server.It also depends up on the site and WSDL only Regards Falcon ![]() |
| |||
| Hi If there are any authentication set for a page then we cant get the details of that page otherwise we can get the details of that page Regards Falcon ![]() Last edited by Falcon : 04-21-2008 at 03:49 AM. |
| |||
| Hi, I think that is correct. I think we can get the HTML versions of the content via CURL functions. Am i right?
__________________ With, J. Jeyaseelan Everything Possible |
| |||
| Hi Yes your are right that curl function tooks only the HTML version of that content. Its wont get the complete details. if a page is developed with the javascript Ajax functions. It wont get the content of that page. Regards Falcon ![]() |
| |||
| Hi Here is one sample code for the Curl function PHP Code: Falcon ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Implementing Role Based Security in ASP.NET | S.Vinothkumar | C# Programming | 13 | 04-02-2008 04:53 AM |
| SOAP with Example... | amansundar | XML and SOAP | 4 | 03-20-2008 11:41 PM |
| Soap in php | venkatbi | PHP Programming | 10 | 09-26-2007 09:26 AM |
| What are the primary considerations when implementing a user defined key? | oxygen | Java Programming | 1 | 07-26-2007 04:52 AM |
| Implementing Crystal Report in Web Application | oxygen | C# Programming | 0 | 07-15-2007 11:40 PM |