↧
You shouldn't use TRY/CATCH around the service calls when using the proxy. The proxy captures errors and returns errors in loProxy.cErrorMsg. Check that property to figure out what went wrong.
+++ Rick ---
I generate with the help of West Wind Web Service Proxy Generator all the programs.
With the visual foxpro code :
***start code
DO saaisproxy
*** Create Proxy Instance & specify .NET version
loProxy = CREATEOBJECT("SAAISProxy","V2")
loexception=NULL && ????????????? ??????, ? ??????? ????? ??????????? ??????
tt=''
TRY
tt=loProxy.getsaaisclients(DATEtime(),'2005011013180',1,2013)
?tt
CATCH TO loexception && ???? ????? ??????, ?? ????????? ??? ?? ???????????
? loexception.MESSAGE
? loexception.ERRORNO
ENDTRY
***end code
is obtain the object tt
Please help, how to proceed next with this object to retrieve data.
Using soapUI 4.5.1 we can verify that sending this request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:GetSAAISClients>
<tem:requestDate>2013-02-19T10:49:45</tem:requestDate>
<!--Optional:-->
<tem:idnp>2002007081921</tem:idnp>
<tem:month>01</tem:month>
<tem:year>2013</tem:year>
</tem:GetSAAISClients>
</soapenv:Body>
</soapenv:Envelope>
is obtained this response :
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetSAAISClientsResponse xmlns="http://tempuri.org/">
<GetSAAISClientsResult>
<root xmlns="">
<Result time="00:00:00.0312508">
<unemployedRecord>
<idnp>2002007081921</idnp>
<firstName>RUSLAN</firstName>
<lastName>LUNGU-ENACHII</lastName>
<unemployedStartDate>2011-12-22</unemployedStartDate>
<unemployedEndDate/>
<jobDenyDate/>
<simulationDenyDate/>
<publicWorkDenyDate/>
<period>
<month>1</month>
<year>2013</year>
<value_list/>
</period>
</unemployedRecord>
</Result>
</root>
</GetSAAISClientsResult>
</GetSAAISClientsResponse>
</soap:Body>
</soap:Envelope>
but this is manual work, and we need to receive this information about firstname, lastname and so on automaticly with Visual FoxPro.
Thanks.