Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: wsdl and visual foxpro

$
0
0
Re: wsdl and visual foxpro
Web Service Proxy Generator
Re: wsdl and visual foxpro
Feb. 22, 2013
11:45 am
3Q00P76CFShow this entire thread in new window
Gratar Image based on email address
From:Stein Goering
To:john
Did you examine the tt object that you obtained? Are you sure the fields you want aren't coming back as properties?

--stein


Hello.
Please help.
I need to receive information from this web service: http://80.97.59.166:8082/SAAIS/SAAIS.asmx?WSDL

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.


West Wind Web Monitor

Viewing all articles
Browse latest Browse all 10393

Trending Articles