저는 SOAP와 XML을 처음 접했습니다. 많은 튜토리얼을 읽었지만 아무것도 명확하지 않습니다.SOAP 요청을 어떻게 보내십니까?
나는 혼란 스럽다. 단지 SOAP 요청을 어떻게 보내는가? 이 작업을 시도한 방법은 SOAP 요청을 testRequest.xml로 저장하는 것입니다 (아래 참조).
POST /MobileCashPayout.asmx HTTP/1.1
Host: 192.168.1.80
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<Payout xmlns="http://www.mycel.com/">
<Username>string</Username>
<Password>string</Password>
<referenceID>string</referenceID>
<sourceMsisdn>string</sourceMsisdn>
<destMsisdn>string</destMsisdn>
<Amount>decimal</Amount>
<MobilePin>string</MobilePin>
<cashInformation>string</cashInformation>
<merchantName>string</merchantName>
</Payout>
</soap12:Body>
</soap12:Envelope>
내가 무엇을 대가로 얻을 것은 없다는 오류 메시지입니다
가 전송 될 때까지 그때 위해 브라우저 파일 (testRequest.xml)를 엽니 다
.. : XML이 오류를 구문 분석을 : 구문 오류 위치 : 로컬 호스트/프로젝트/test.xml의 라인 번호 1, 열 1 : POST /MobileCashPayout.asmx HTTP/1.1 ^
내가 길을 잘못 보내는 건가요? 도와주세요.
XML 콘텐츠는' xml'로 시작합니다. 그 전의 모든 것은 HTTP 헤더입니다. 어떤 플랫폼을 사용하고 있습니까? 자바? –