편집 :이 질문은 내가 만료 된 서버로 인해 유효하지 않습니다. 제발 무시해SOAP 및 PHP를 사용하여 PDF 파일 가져 오기
저는 PHP의 SoapClient에 익숙하지 않습니다. 세 가지 매개 변수를 전달하고 결과를 가져 와서 PDF를 가져 오려고합니다.
<?php
header("content-type: application/pdf");
$client = new SoapClient('http://69.128.94.30:8080/4DSOAP/');
$result = $client->WS_ME_StatementRequest(array('FuneralHomeID' => '0008-00', 'Month' => 11, 'Year' => "2008"));
$pdfdoc = $result->WS_ME_StatementResponse->StatementPDF;
print($pdfdoc);
:
<!-- this WSDL file was automatically generated by 4D -->
<definitions name="A_WebService" targetNamespace="http://www.4d.com/namespace/default" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.4d.com/namespace/default" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<message name="WS_ME_StatementRequest">
<part name="FuneralHomeID" type="xsd:string"/>
<part name="Month" type="xsd:int"/>
<part name="Year" type="xsd:string"/>
</message>
<message name="WS_ME_StatementResponse">
<part name="StatementPDF" type="xsd:base64Binary"/>
</message>
<portType name="A_WebServiceRPC">
<operation name="WS_ME_Statement">
<input message="tns:WS_ME_StatementRequest"/>
<output message="tns:WS_ME_StatementResponse"/>
</operation>
</portType>
<binding name="A_WebServiceBinding" type="tns:A_WebServiceRPC">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
<operation name="WS_ME_Statement">
<documentation>Inputs: None
Outputs: text variable</documentation>
<soap:operation soapAction="A_WebService#WS_ME_Statement"/>
<input>
<soap:body use="encoded" namespace="http://www.4d.com/namespace/default" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded" namespace="http://www.4d.com/namespace/default" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="A_WebService">
<documentation></documentation>
<port name="A_WebServicePort" binding="tns:A_WebServiceBinding">
<soap:address location="http://69.128.94.30:8080/4DSOAP/"/>
</port>
</service>
</definitions>
그리고 여기가 내가 지금까지 어떤 단지 404의를 반환 한 내용은 다음과 같습니다 여기에 내가 함께 일하고 있어요 WSDL 파일은 (난 정말이 부분 이상/모든 컨트롤 많지 않음)입니다
내가 뭘 잘못하고 있는지에 대한 아이디어가 있습니까?
먼저 파일에 쓰십시오. –