solaris-ch
Goto Top

PHP SOAP wsdl problem

Naja, SOAP und PHP bringen mich noch um den letzten Nerv face-sad

Ich habe folgenden PHP Code bisher aufgebaut:

include_once('../lib/nusoap/nusoap.php');  
include_once('../lib/nusoap/class.wsdlcache.php');  
include_once('config/config.inc.php');  

// $wsdlurl
// $endpoint
// $username
// $password

$wsparam = array('application'=>'abc','cli'=>'0433550650');  

$client = new nusoap_client($wsdlurl,true);

// check for an error
$err = $client->getError();
echo $err;
$result = $client->call('preQualificationCheck',$wsparam);  
if($client->fault){
	echo "fault<br>";  
	print_r($result);
}else{
	// check for errors
	$err = $client->getError();
	if($err){
		echo "error: " . $err;  
	}else{
		echo "result: " . print_r($result);  
	}
}
die;

das wsdl dazu sieht so aus:
<?xml version="1.0" encoding="UTF-8"?> 
<wsdl:definitions name="xip_dslnetworkCheck"  
	targetNamespace="urn:dslnetworkCheck.definitions.xip.ws.XXX.net"  
	xmlns:tns="urn:dslnetworkCheck.definitions.xip.ws.XXXXXX.net"  
	xmlns:dslnetworkCheck="urn:dslnetworkCheck.schemas.xip.ws.XXXXXX.net"  
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"  
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"  
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
	
	<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> 
		Web Service offered by XIP for provisioning data for the DSL line ( ULL ) architecture. 
	</wsdl:documentation>
	<wsdl:types>
		<xsd:schema elementFormDefault="qualified"> 
			<xsd:import schemaLocation="preQualificationCheck.xsd" namespace="urn:dslnetworkCheck.schemas.xip.ws.XXXXXX.net"/> 
		</xsd:schema>
	</wsdl:types>
	
	<!-- ########## messages ########## -->
 
	<wsdl:message name="ValidationException"> 
		<wsdl:part name="fault" element="dslnetworkCheck:ValidationException"/> 
	</wsdl:message>
	<wsdl:message name="ProcessingException"> 
		<wsdl:part name="fault" element="dslnetworkCheck:ProcessingException"/> 
	</wsdl:message>
	
	<!-- for PreQualificationCheck -->	
	<wsdl:message name="preQualificationCheckRequest"> 
		<wsdl:part name="parameters" element="dslnetworkCheck:preQualificationCheckRequest" /> 
	</wsdl:message>
	<wsdl:message name="preQualificationCheckResponse"> 
		<wsdl:part name="returnvalue" element="dslnetworkCheck:preQualificationCheckResponse" /> 
	</wsdl:message>
	
	<!-- for TalQualificationCheck -->	
	<wsdl:message name="talQualificationCheckRequest"> 
		<wsdl:part name="parameters" element="dslnetworkCheck:talQualificationCheckRequest" /> 
	</wsdl:message>
	<wsdl:message name="talQualificationCheckResponse"> 
		<wsdl:part name="returnvalue" element="dslnetworkCheck:talQualificationCheckResponse" /> 
	</wsdl:message>

	<!-- for LexInfo -->	
	<wsdl:message name="lexInfoRequest"> 
		<wsdl:part name="parameters" element="dslnetworkCheck:lexInfoRequest" /> 
	</wsdl:message>
	<wsdl:message name="lexInfoResponse"> 
		<wsdl:part name="returnvalue" element="dslnetworkCheck:lexInfoResponse" /> 
	</wsdl:message>
	
	
	<!-- ########## port ########## -->
	<wsdl:portType name="DslNetworkCheck_v1"> 
		<wsdl:operation name="preQualificationCheck"> 
			<wsdl:input name="preQualificationCheckRequest" message="tns:preQualificationCheckRequest"/> 
			<wsdl:output name="preQualificationCheckResponse" message="tns:preQualificationCheckResponse"/> 
			<wsdl:fault name="ValidationException" message="tns:ValidationException"/> 
			<wsdl:fault name="ProcessingException" message="tns:ProcessingException"/> 
		</wsdl:operation>
		
		<wsdl:operation name="talQualificationCheck"> 
			<wsdl:input name="talQualificationCheckRequest" message="tns:talQualificationCheckRequest"/> 
			<wsdl:output name="talQualificationCheckResponse" message="tns:talQualificationCheckResponse"/> 
			<wsdl:fault name="ValidationException" message="tns:ValidationException"/> 
			<wsdl:fault name="ProcessingException" message="tns:ProcessingException"/> 
		</wsdl:operation>

		<wsdl:operation name="lexInfo"> 
			<wsdl:input name="lexInfoRequest" message="tns:lexInfoRequest"/> 
			<wsdl:output name="lexInfoResponse" message="tns:lexInfoResponse"/> 
			<wsdl:fault name="ValidationException" message="tns:ValidationException"/> 
			<wsdl:fault name="ProcessingException" message="tns:ProcessingException"/> 
		</wsdl:operation>
	</wsdl:portType>

	<!-- ########## binding ########## -->
	<wsdl:binding name="DslNetworkCheck_v1" type="tns:DslNetworkCheck_v1"> 
		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> 
		
		<wsdl:operation name="preQualificationCheck"> 
			<soap:operation style="document"/> 
			<wsdl:input>
				<soap:body use="literal"/> 
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal"/> 
			</wsdl:output>
			<wsdl:fault name="ValidationException"> 
				<soap:fault use="literal"/> 
			</wsdl:fault>
			<wsdl:fault name="ProcessingException"> 
				<soap:fault use="literal"/> 
			</wsdl:fault>
		</wsdl:operation>
		
		<wsdl:operation name="talQualificationCheck"> 
			<soap:operation style="document"/> 
			<wsdl:input>
				<soap:body use="literal"/> 
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal"/> 
			</wsdl:output>
			<wsdl:fault name="ValidationException"> 
				<soap:fault use="literal"/> 
			</wsdl:fault>
			<wsdl:fault name="ProcessingException"> 
				<soap:fault use="literal"/> 
			</wsdl:fault>
		</wsdl:operation>

		<wsdl:operation name="lexInfo"> 
			<soap:operation style="document"/> 
			<wsdl:input>
				<soap:body use="literal"/> 
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal"/> 
			</wsdl:output>
			<wsdl:fault name="ValidationException"> 
				<soap:fault use="literal"/> 
			</wsdl:fault>
			<wsdl:fault name="ProcessingException"> 
				<soap:fault use="literal"/> 
			</wsdl:fault>
		</wsdl:operation>
	</wsdl:binding>

</wsdl:definitions>



Wenn ich das PHP nun laufen lasse, meckert und crasht er mit folgender Fehlermeldung:

wsdl error: Bad path to WSDL file ://dpreQualificationCheck.xsd

Wenn man sich jedoch das wsdl anschaut, steht der Verweis auf: <xsd:import schemaLocation="preQualificationCheck.xsd" ... und nicht auf dpreQualifiactionCheck.xsd
Hat jemand einen Plan was da falsch geht, beziehungsweise wo der das d hernimmt? Ich jedenfalls nicht face-sad

Beste Grüsse und vielen Dank!

Content-ID: 125503

Url: https://administrator.de/contentid/125503

Ausgedruckt am: 15.11.2024 um 23:11 Uhr