All pastes #587858 Raw Edit

Something

public xml v1 · immutable
#587858 ·published 2007-06-25 04:11 UTC
rendered paste body
<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://localhost/~joshteam/Soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" name="RFPApi" targetNamespace="http://localhost/~joshteam/Soap/">	<wsdl:types>		<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"			    targetNamespace="http://localhost/~joshteam/Soap/"			    elementFormDefault="qualified">						<xsd:element name="SayHelloRequest">				<xsd:complexType>					<xsd:sequence>						<xsd:element name="name" type="xsd:string"/>						<xsd:element name="name2" type="xsd:string"/>					</xsd:sequence>				</xsd:complexType>			</xsd:element>						<!--<xsd:element name="SayHelloRequest" type="xsd:string" />-->						<xsd:element name="SayHelloResponse" type="xsd:string" />					</xsd:schema>	</wsdl:types>	<wsdl:message name="SayHelloIn">		<wsdl:part name="parameters" element="tns:SayHelloRequest"/>	</wsdl:message>	<wsdl:message name="SayHelloOut">		<wsdl:part name="parameters" element="tns:SayHelloResponse"/>	</wsdl:message>	<wsdl:portType name="RFPApiBinding">		<wsdl:operation name="SayHello">			<wsdl:input message="tns:SayHelloIn"/>			<wsdl:output message="tns:SayHelloOut"/>		</wsdl:operation>	</wsdl:portType>	<wsdl:binding name="RFPApiBinding" type="tns:RFPApiBinding">		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>		<wsdl:operation name="SayHello">			<wsdl:input><soap:body use="literal"/></wsdl:input>			<wsdl:output><soap:body use="literal"/></wsdl:output>		</wsdl:operation>	</wsdl:binding>	<wsdl:service name="RFPApiService">		<wsdl:port name="RFPPort" binding="tns:RFPApiBinding">			<soap:address location="http://localhost/~joshteam/Soap/server.php"/>		</wsdl:port>	</wsdl:service></wsdl:definitions>/////////////////////////////////////////////////////<?php        ini_set('soap.wsdl_cache', '0');    ini_set('soap.wsdl_cache_limit', '0');    ini_set('soap.wsdl_cache_ttl', '0');        try {		class SayHelloRequest {	    	    public $name;	    public $name2;	    	    public function __construct($n1, $n2) {		$this->name = $n1;		$this->name2 = $n2;	    }	    	    public function getName() {		return $this->name .' '. $this->name2;	    }	    	}		$person = new SayHelloRequest('Josh', 'Team');		$client = new SoapClient('http://localhost/~joshteam/Soap/man2.wsdl');	echo $client->SayHello($person);	    } catch (Exception $e) {		echo 'Error:'. $e->getMessage() .'<br>';	print_r($client->__getFunctions());	    }?>/////////////////////////////////////////////////////RETURNS:Error:Procedure 'SayHelloRequest' not presentArray ( [0] => string SayHello(SayHelloRequest $parameters) )