0
Nusoap.when을 사용하여 간단한 웹 서비스를 개발하려고 할 때 server.php를 실행하고 WSDL 파일의 출력과 메서드를 보여줍니다.하지만 내가 시도 할 때 내 XML 파일을 실행하기 위해 아래에 주어진 문서 empty.i로 오류를 표시합니다. 여기PHP webservices nusoap을 사용하는 경우
This page contains the following errors:
error on line 1 at column 21: Extra content at the end of the document
Below is a rendering of the page up to the first error.
그리고 내 XML 파일입니다 :
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Thu, 24 Apr 2003 15:15:28 GMT
X-Powered-By: PHP/4.0.6
Server: NuSOAP Server v0.6.3
Connection: Close
Content-Type: text/xml; charset=UTF-8
Content-Length: 522
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:si="http://soapinterop.org/xsd">
<SOAP-ENV:Body>
<helloResponse>
<return xsi:type="xsd:string">Hello, Scott</return>
</helloResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
사람이 이유가 무엇인지 말해 주시겠습니까은
이
는 오류입니다.
루트 요소를 지정 했습니까? 그것은 대부분 문제입니다. – Matheno
no..i 루트 요소를 지정하지 않았습니다. 제발 내가 할 일에 대한 명확한 생각을 알려주세요. – devi
이것 좀보세요 : http://www.w3schools.com/soap/soap_header.asp – Matheno