开发者

Soap Premature end

开发者 https://www.devze.com 2023-01-21 15:15 出处:网络
i\'m trying to write a php soap server but i keep getting the folow error on louding the wsdl file: WSDLSOAP-ERROR: Parsing WSDL: Couldn\'t load from \'files.wsdl\' : Premature end of data in tag def

i'm trying to write a php soap server but i keep getting the folow error on louding the wsdl file:

WSDLSOAP-ERROR: Parsing WSDL: Couldn't load from 'files.wsdl' : Premature end of data in tag definitions line 2

the wsdl file looks like this:

        <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="TemperatureService"
     targetNamespace="http://www.mysite.com/soap/files.wsdl"
     xmlns:tns="http://www.mysite.com/soap/files.wsdl"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
     xmlns="http://schemas.xmlsoap.org/wsdl/">

        <!------------------------
                        DATATYPES
        ------------------------->
        <types>
        </types>

        <!------------------------
                        MESSAGES
        ------------------------->
        <message name="createReleaseRequest">
            <part name="title" type="xsd:string"/>
            <part name="size" type="xsd:string"/>
            <part name="key" type="xsd:string"/>
        </message>
        <开发者_开发知识库message name="createReleaseResponse">
            <part name="rlsid" type="xsd:string"/>
        </message>

        <!------------------------
                        PORTTYPES
        ------------------------->
        <portType name="DBPortType">
            <operation name="createRelease">
                <input message="tns:createReleaseRequest" />
                <output message="tns:createReleaseResponse" />
            </operation>
        </portType>
     </definitions>

and the php file:

<?php
ini_set("soap.wsdl_cache_enabled", "0");

$server = new SoapServer("files.wsdl");
$server->setClass("handleDB");
$server->handle();

class handleDB {
 ////
}
?>

does amyone know what i'm doing wrong


I found the problem i could not type my comments i that way

0

精彩评论

暂无评论...
验证码 换一张
取 消