gsoap에서 웹 서비스를 만들었지 만 서버가 요청을 수락하지 않습니다. 오류는 없지만 클라이언트의 요청을 받아들이지 않는 이유는 알 수 없습니다. 클라이언트 코드와 서버 코드를 여기에 붙여 넣습니다.
Clientcode
gsoap 서버가 클라이언트 요청을 허용하지 않습니다.
EnrollmentServiceSOAPProxy proxy;
_ns1__performRequest *req = new _ns1__performRequest();
_ns1__performRequestResponse *res = new _ns1__performRequestResponse();
if(proxy.performRequest(req, res) == SOAP_OK)
print "OK" // pseudo code for print.
else
print "Not Ok"
서버 코드 :
int __ns1__performRequest(soap *, _ns1__performRequest *ns1__performRequest, _ns1__performRequestResponse *ns1__performRequestResponse)
{
ns1__performRequestResponse->jobID = "1011";
return SOAP_OK;
}
서버는 로컬 호스트에서 듣고있다. 그러나 요청은 서버에 도달하지 않습니다.
이
은 WSDL 파일입니다 https://www.dropbox.com/s/n2sdv51qmttp7vb/EnrollmentService.wsdl내가 코드를 디버깅,하지만 나에게 도움이되지 않았다.
서비스 코드에서 soap_begin_serve() 호출 및 dispatch()를 수행하는 서버 코드 부분을 공유 할 수 있습니까? – HAL