0
초보자 인 webservices는 서버 역할을하는 파트너 API에서 웹 서비스를 사용하고 있습니다. 요청을 내 API로 푸시하는 게이트웨이 애플리케이션을 개발했습니다. 클라이언트. 나는 내 API의 메소드와 파트너의 API가 일치하지 않기 때문에 이것을했다. 내가 SOAPUI에 파트너의 API를 탐구하고 내가 아래에 붙여 넣은 내가 필요로하는 방법, 확인했다 : 지정된 엔드 포인트 URL에 요청을 제출 중 한XML SOAPUI 응답을 Java 객체로 변환하기
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hub="http://hub4api.cellulant.com/">
<soapenv:Header/>
<soapenv:Body>
<hub:validateAccount>
<credentials>
<username>?</username>
<password>?</password>
</credentials>
<packet>
<!--1 or more repetitions:-->
<Item>
<serviceID>?</serviceID>
<serviceCode>?</serviceCode>
<accountNumber>?</accountNumber>
<requestExtraData>?</requestExtraData>
</Item>
</packet>
</hub:validateAccount>
</soapenv:Body>
</soapenv:Envelope>
을, 내가 응답 아래
<S:<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
Body>
<ns2:validateAccountResponse xmlns:ns2="http://hub4api.cellulant.com/">
<return>
<authStatus>
<authStatusCode>131</authStatusCode>
<authStatusDescription>Authentication was a success</authStatusDescription>
</authStatus>
<results>
<Item>
<statusCode>307</statusCode>
<statusDescription>Account number provided is valid</statusDescription>
<serviceID>130</serviceID>
<serviceCode/>
<accountNumber>XXXXXXXX</accountNumber>
<active>yes</active>
<responseExtraData>{"Currency":"XXX","VALUE":"33.54","DueDate":"2014-09-12T00:00:00+07:00"}</responseExtraData>
</Item>
</results>
</return>
</ns2:validateAccountResponse>
</S:Body>
</S:Envelope>
I를 얻을 수 자바 객체로 응답을 변환하고 내 GateWay에서 사용하고 싶지만 그것에 대해 갈 방법을 모른다. 누군가 나를 도울 수 있습니까?
WSDL 파일이 필요합니다. 일반적으로 다음과 같이 게시됩니다 :'[endpoint]? wsdl'. 그러나 SOAP을 사용하는 많은 WS가 WSDL을 게시하지 않는 것을 보았습니다. – Victor