Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
WSDL und assoziative Arrays [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr

- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
WSDL und assoziative Arrays


 
ezkimo
25-03-2009, 00:36 
 
Hallo,

wie beschreibe ich in einer WSDL Datei ein assoziatives Array? Im Moment habe ich hier weder in der offiziellen Deklaration noch im Web irgend einen Hinweis gefunden.

Mein Ansatz bisher sieht so aus:

<types>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:BauherrenServer">
<xsd:complexType name="stringArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</types>

Ein ganz normales nummeriertes Array ohne Schlüssel. Hat jemand einen Tipp oder einen Link?

Vielen Dank schon mal im Voraus.

Gruß
Marcel

 
ezkimo
25-03-2009, 12:07 
 
Okay ich bin Dank O'Reilly jetzt doch noch drauf gekommen. Dennoch Danke an alle, die hier mal reingesehen haben.

Lösung des Problems: http://oreilly.com/catalog/webservess/chapter/ch06.html

<types>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:BauherrenServer"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<xsd:complexType name="indexData">
<xsd:sequence>
<xsd:element name="neubausumme" type="xsd:string"></xsd:element>
<xsd:element name="wohnflaeche" type="xsd:integer"></xsd:element>
<xsd:element name="bauart" type="xsd:string"></xsd:element>
<xsd:element name="gebaeudetyp" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>

Gruß
Marcel


Alle Zeitangaben in WEZ +2. Es ist jetzt 06:54 Uhr.