php.de

Zurück   php.de > Webentwicklung > PHP-Fortgeschrittene

PHP-Fortgeschrittene Arbeiten mit PHP ohne Einschränkungen

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 05.04.2006, 19:54  
Gast
 
Beiträge: n/a
Standard Problem mit SOAP --> DTD Fehlermeldung...

Hallo,

ich erhalte immer folgende Fehlermeldung:

Zitat:
DTD are not supported by SOAP
dabei nutze ich meiner Meinung nach garkeine DTD...

Also ich habe eine ganz simple Server-Datei (b2trans.php):

Code:
<?php
class b2_transfer {
	/**
	 * Hier werden die Daten
	 * @param string
	 * @return b2output_all
	 */
  public function b2_out($last) {
		$b2output_all = new b2output_all();
		$b2output_all->b2output = new b2output();
		$b2output_all->b2output->bid =1;
		$b2output_all->b2output->title ="test";
		$b2output_all->b2output->title ="test";
		$b2output_all->b2output->description ="test";
		$b2output_all->b2output->rubricID =1;
		$b2output_all->b2output->offer ="y";
		$b2output_all->b2output->startdate ="test";
		$b2output_all->b2output->last_change ="test";
		$b2output_all->b2output->state ="test";
		$b2output_all->id = 1;
		
		$ret[] = $b2output_all;
		//debugObject("contacten: ",$ret);
		return $ret;
  }

}

try {
  $server = new SOAPServer('b2_transfer.wsdl');
  $server->setClass('b2_transfer');
  $server->handle();
}
 
catch (SOAPFault $f) {
  print $f->faultstring;
}

?>

, eine Client-Datei (client.php):

Code:
<?php
try {
  $client = new SOAPClient('http://localhost/soap/b2_transfer.wsdl');
 
 $test =  $client->b2_out("");
 //print $test[]->$id;
 // print $client->hallo();

}
 
catch (SOAPFault $f) {
  print $f->faultstring;
}
?>
und natürlich meine WSDL-Datei (b2_transfer.wsdl):

Code:
<?xml version="1.0"?>
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://localhost" targetNamespace="http://localhost">
<wsdl:types>
<xsd:schema targetNamespace="http://localhost">
<xsd:complexType name="b2output_all">
<xsd:all>
<xsd:element name="b2output" type="tns:b2output"/>
<xsd:element name="id" type="xsd:int"/></xsd:all>
</xsd:complexType><xsd:complexType name="b2output">
<xsd:all><xsd:element name="bid" type="xsd:int"/>
<xsd:element name="description" type="xsd:string"/>
<xsd:element name="last_change" type="xsd:string"/>
<xsd:element name="offer" type="xsd:string"/>
<xsd:element name="rubricID" type="xsd:int"/>
<xsd:element name="startdate" type="xsd:string"/>
<xsd:element name="state" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
</xsd:all></xsd:complexType></xsd:schema></wsdl:types><message name="b2_outRequest">
<part name="last" type="xsd:string"/>
</message>
<message name="b2_outResponse">
<part name="b2_outReturn" type="tns:b2output_all"/>
</message><wsdl:portType name="b2_transferPortType"><wsdl:operation name="b2_out">
<wsdl:input message="tns:b2_outRequest"/>
<wsdl:output message="tns:b2_outResponse"/>
</wsdl:operation></wsdl:portType><binding name="b2_transferBinding" type="tns:b2_transferPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="b2_out">
<soap:operation soapAction="http://localhost/webtor/service.php?class=b2_transfer&amp;method=b2_out" style="rpc"/>
<wsdl:input>
<soap:body use="encoded" namespace="http://localhost" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:input>
<wsdl:output>
<soap:body use="encoded" namespace="http://localhost" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:output></wsdl:operation>
</binding>
<wsdl:service name="b2_transfer">
<wsdl:port name="b2_transferPort" binding="tns:b2_transferBinding"><soap:address location="http://localhost/soap/b2trans.php"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Voran liegt das, dass ich die ganze Zeit diesen Fehler bekomme? Ich bin da echt ratlos...

Bin für jede Hilfe dankbar.

Gruß,
Michael
  Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[Erledigt] Galerie Problem... coraplanet PHP Tipps 2008 4 06.06.2008 13:42
SOAP in PHP5 für NuSoap deaktivieren PHP-Fortgeschrittene 2 03.08.2005 18:23
[Erledigt] Problem mit Backslash Patrick Schwarz PHP Tipps 2005-2 5 26.07.2005 09:54
Root Server Problem PHP Tipps 2005-2 27 11.07.2005 21:50
[Erledigt] Problem mit User/Group: nobody(99)/99 Server, Hosting und Workstations 3 09.07.2005 15:31
fragwürdige Fehlermeldung PHP Tipps 2005 5 19.05.2005 15:45
Problem mit Kontaktformular! PHP Tipps 2005 4 15.05.2005 18:14
Problem beim laden von extension mit PHP 5 PHP Tipps 2005 5 09.02.2005 16:15
Problem mit Fehlermeldung sharky PHP Tipps 2005 2 27.01.2005 13:44
Problem mit Weiterleitung PHP Tipps 2004-2 16 22.12.2004 17:49
Problem, hoffe die Fehlermeldung falsch verstanden zu haben Off-Topic Diskussionen 18 08.08.2004 16:39
[Erledigt] Problem mit Php5 + Soap unter Win2k + IIS5 PHP-Fortgeschrittene 0 04.08.2004 16:57
Problem beim Upload mehrerer Dateien per Script PHP Tipps 2004 1 04.08.2004 16:26
Upload problem -> unerklärliche fehlermeldung PHP Tipps 2004 9 19.07.2004 10:43
PhpMyAdmin - Problem PHP Tipps 2004 5 18.07.2004 21:28

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
dtd are not supported by soap, soap dtd, [client] dtd are not supported by soap, php dtd are not supported by soap, \dtd are not supported by soap\, dtd soap, php \dtd are not supported by soap\, fehler dtd, php dtd are not supported by soap in, dtd are not supported by soap in, dtd fehler, soap.xml dtd, dtd auf dem server name, soap xml dtd, xml soap xsd, php xmlns:tns localhost, soap localhost xml schema, dtd not support php, soap encoding dtd error, error dtd are not supportet by soap

Alle Zeitangaben in WEZ +2. Es ist jetzt 21:12 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.