logo       

Re: location php.exe?: msg#00043

php.nusoap.general

Subject: Re: location php.exe?

Hi,

PHP 4 for Windows comes in two flavours - a CGI executable (php.exe),
and several SAPI/modules.

By default, when you use the CGI executable, the generated endpoint is
derivated from the parameter: Action application/x-httpd-php "/php/php.exe"
from the apache.conf file.

If you hav installed PHP as a CGI binary, read:

http://www.cert.org/advisories/CA-1996-11.html

So...I recommand that you configure PHP as a module in Apache... To
accomplish this, you have to load the php4apache.dll in your
Apache httpd.conf and read the install.txt file from PHP.

Everything will be solve...

Guillaume

----- Original Message -----
From: "ACE Pedro Vasconcelos" <ace_pvasconcelos@xxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, April 12, 2004 11:38 AM
Subject: [Nusoap-general] location php.exe?


Hello!

I am trying to create the WSDL of my service using the example in your
page:



<?

require_once("nusoap.php");

$ns="http://localhost/nusoap/";;

$server = new soap_server();

$server->configureWSDL('CanadaTaxCalculator',$ns);

$server->wsdl->schemaTargetNamespace=$ns;

$server->register('CalculateOntarioTax',

array('amount' => 'xsd:string'),

array('return'=>'xsd:string'),

$ns);

function CalculateOntarioTax($amount){

$taxcalc=$amount*.15;

return new soapval('return','string',$taxcalc);

}

$server->service($HTTP_RAW_POST_DATA);

?>



but my WSDL look like this:



<?xml version="1.0" encoding="ISO-8859-1"?>

<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:si="http://soapinterop.org/xsd";
xmlns:tns="http://localhost/nusoap/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns="http://schemas.xmlsoap.org/wsdl/";
targetNamespace="http://localhost/nusoap/";>

<types>

<xsd:schema targetNamespace="http://localhost/nusoap/";>

<xsd:import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

<xsd:import
namespace="http://schemas.xmlsoap.org/wsdl/"/>

</xsd:schema>

</types>

<message name="CalculateOntarioTaxRequest">

<part name="amount" type="xsd:string"/>

</message>

<message name="CalculateOntarioTaxResponse">

<part name="return" type="xsd:string"/>

</message>

<portType name="CanadaTaxCalculatorPortType">

<operation name="CalculateOntarioTax">

<input message="tns:CalculateOntarioTaxRequest"/>

<output message="tns:CalculateOntarioTaxResponse"/>

</operation>

</portType>

<binding name="CanadaTaxCalculatorBinding"
type="tns:CanadaTaxCalculatorPortType">

<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>

<operation name="CalculateOntarioTax">

<soap:operation
soapAction="http://localhost/php/php.exe/CalculateOntarioTax";
style="rpc"/>

<input>

<soap:body use="encoded"
namespace="http://localhost/nusoap/";
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</input>

<output>

<soap:body use="encoded"
namespace="http://localhost/nusoap/";
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</output>

</operation>

</binding>

<service name="CanadaTaxCalculator">

<port name="CanadaTaxCalculatorPort"
binding="tns:CanadaTaxCalculatorBinding">

<soap:address
location="http://localhost/php/php.exe"/>

</port>

</service>

</definitions>





The lines:

<soap:operation
soapAction="http://localhost/php/php.exe/CalculateOntarioTax";
style="rpc"/>

and

<soap:address
location="http://localhost/php/php.exe"/>



doesn't make much sense

What am I doing wrong?



Thanks

Pedro Vasconcelos









-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise