consuming webservice error
Here is my code IN AE,
try
Local string &payload, &responseStr;
Local SOAPDoc &soapReq, &soapRes;
Local XmlDoc &request, &response;
&soapReq = CreateSOAPDoc();
&soapReq.AddMethod("GETDAYATTENDANCE", 1);
&soapReq.AddParm("strID", "mengxz");
&result = &soapReq.ValidateSOAPDoc();
If &result = 0 Then
Warning &soapReq.GenXmlString();
&request = &soapReq.XmlDoc;
&response = SyncRequestXmlDoc(&request, Message.GETDAYATTENDANCEREQUEST, Node.PSFT_HR);
&soapRes = CreateSOAPDoc();
&soapRes.XmlDoc = &response;
&OK = &soapRes.ValidateSOAPDoc();
If All(&OK) Then
&strXml = &soapRes.GenXmlString();
MessageBox(0, "", 0, 0, &strXml);
Else
MessageBox(0, "", 0, 0, "Error. No reply");
End-If;
End-If;
catch Exception &xException;
Warning "error" | &xException.DefaultText;
end-try;
THE PROCESS ENDS WITH MESSAGE. THE MESSAGE SAYS ' UNABLE TO GET OPERATION DEFINITION FOR %1'
IF I CHANGE THE CODE TO
try
Local string &payload, &responseStr;
Local SOAPDoc &soapReq, &soapRes;
Local XmlDoc &request, &response;
&soapReq = CreateSOAPDoc();
&soapReq.AddMethod("GETDAYATTENDANCE", 1);
&soapReq.AddParm("strID", "mengxz");
&result = &soapReq.ValidateSOAPDoc();
If &result = 0 Then
Warning &soapReq.GenXmlString();
&request = &soapReq.XmlDoc;
&response = SyncRequestXmlDoc(&request, Message.GETDAYATTENDANCEREQUEST, Node.PSFT_HR);
&soapRes = CreateSOAPDoc();
&soapRes.XmlDoc = &response;
&OK = &soapRes.ValidateSOAPDoc();
If All(&OK) Then
&strXml = &soapRes.GenXmlString();
MessageBox(0, "", 0, 0, &strXml);
Else
MessageBox(0, "", 0, 0, "Error. No reply");
End-If;
End-If;
catch Exception &xException;
Warning "error" | &xException.DefaultText;
end-try;
THE PROCESS ENDS WITH MESSAGE. THE MESSAGE SAYS ' UNABLE TO GET OPERATION DEFINITION FOR %1'
IF I CHANGE THE CODE TO
0