logo       

location php.exe?: msg#00042

php.nusoap.general

Subject: 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

 

 

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

News | FAQ | advertise