loItems = loProxy.CallMethod()lnCount = loItems.Count
FOR lnX = 1 to lnCount
loItem = loItems.Item(lnX)
? loItem.Property
* ... do what you need to with each item
ENDFOR
+++ Rick ---
using west wind webservice for vfp, how i can get return array value...? ws provider developt with nusoap
West Wind Technologies
Making waves on the Web
from Maui
in .net reflector there is displayed all return value in string format, but if I open wdsl file there are fucntions have return value in string format, array format or recordset format. So if i access the ws function that have return value in array format (displayed if wdsl), but i allways get return value in string value, what is happening..?,
there is some code from wdsl file :
<?xml version="1.0" encoding="ISO-8859-1"?>
-<definitions targetNamespace="http://localhost/soap/WSPDDIKTI" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://localhost/soap/WSPDDIKTI" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
-<types>
-<xsd:schema targetNamespace="http://localhost/soap/WSPDDIKTI">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
<xsd:complexType name="Record"/>
-<xsd:complexType name="ReturnSet">
-<xsd:all>
<xsd:element type="xsd:int" name="error_code"/>
<xsd:element type="xsd:string" name="error_desc"/>
<xsd:element type="tns:Record" name="result"/>
</xsd:all>
</xsd:complexType>
-<xsd:complexType name="ReturnStr">
-<xsd:all>
<xsd:element type="xsd:int" name="error_code"/>
<xsd:element type="xsd:string" name="error_desc"/>
<xsd:element type="xsd:string" name="result"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
-<message name="GetTokenRequest">
<part type="xsd:string" name="username"/>
<part type="xsd:string" name="password"/>
</message>
-<message name="GetTokenResponse">
<part type="xsd:string" name="output"/>
</message>
-<message name="ListTableRequest">
<part type="xsd:string" name="token"/>
</message>
-<message name="ListTableResponse">
<part type="xsd:Array" name="output"/>
</message>
using west wind webservice for vfp, how i can get return array value...? ws provider developt with nusoap
in .net reflector there is displayed all return value in string format, but if I open wdsl file there are fucntions have return value in string format, array format or recordset format. So if i access the ws function that have return value in array format (displayed if wdsl), but i allways get return value in string value, what is happening..?,
there is some code from wdsl file :
<?xml version="1.0" encoding="ISO-8859-1"?>
-<definitions targetNamespace="http://localhost/soap/WSPDDIKTI" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://localhost/soap/WSPDDIKTI" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
-<types>
-<xsd:schema targetNamespace="http://localhost/soap/WSPDDIKTI">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
<xsd:complexType name="Record"/>
-<xsd:complexType name="ReturnSet">
-<xsd:all>
<xsd:element type="xsd:int" name="error_code"/>
<xsd:element type="xsd:string" name="error_desc"/>
<xsd:element type="tns:Record" name="result"/>
</xsd:all>
</xsd:complexType>
-<xsd:complexType name="ReturnStr">
-<xsd:all>
<xsd:element type="xsd:int" name="error_code"/>
<xsd:element type="xsd:string" name="error_desc"/>
<xsd:element type="xsd:string" name="result"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
-<message name="GetTokenRequest">
<part type="xsd:string" name="username"/>
<part type="xsd:string" name="password"/>
</message>
-<message name="GetTokenResponse">
<part type="xsd:string" name="output"/>
</message>
-<message name="ListTableRequest">
<part type="xsd:string" name="token"/>
</message>
-<message name="ListTableResponse">
<part type="xsd:Array" name="output"/>
</message>
Array reuslts should be returned as a ComArray...
loItems = loProxy.CallMethod()lnCount = loItems.Count
FOR lnX = 1 to lnCount
loItem = loItems.Item(lnX)
? loItem.Property
* ... do what you need to with each item
ENDFOR
+++ Rick ---
using west wind webservice for vfp, how i can get return array value...? ws provider developt with nusoap
+++ Rick ---
thanks a lot for your valueable respon.
in .net reflector there is displayed all return value in string format, but if I open wdsl file there are fucntions have return value in string format, array format or recordset format. So if i access the ws function that have return value in array format (displayed if wdsl), but i allways get return value in string value, what is happening..?,
there is some code from wdsl file :
<?xml version="1.0" encoding="ISO-8859-1"?>
-<definitions targetNamespace="http://localhost/soap/WSPDDIKTI" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://localhost/soap/WSPDDIKTI" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
-<types>
-<xsd:schema targetNamespace="http://localhost/soap/WSPDDIKTI">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
<xsd:complexType name="Record"/>
-<xsd:complexType name="ReturnSet">
-<xsd:all>
<xsd:element type="xsd:int" name="error_code"/>
<xsd:element type="xsd:string" name="error_desc"/>
<xsd:element type="tns:Record" name="result"/>
</xsd:all>
</xsd:complexType>
-<xsd:complexType name="ReturnStr">
-<xsd:all>
<xsd:element type="xsd:int" name="error_code"/>
<xsd:element type="xsd:string" name="error_desc"/>
<xsd:element type="xsd:string" name="result"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
-<message name="GetTokenRequest">
<part type="xsd:string" name="username"/>
<part type="xsd:string" name="password"/>
</message>
-<message name="GetTokenResponse">
<part type="xsd:string" name="output"/>
</message>
-<message name="ListTableRequest">
<part type="xsd:string" name="token"/>
</message>
-<message name="ListTableResponse">
<part type="xsd:Array" name="output"/>
</message>
using west wind webservice for vfp, how i can get return array value...? ws provider developt with nusoap
West Wind Technologies
Making waves on the Web
from Maui
in .net reflector displayed that all return value of ws function are in in string format, but in wdsl there is the fucntions that have return value in string, array or recordset format. ( xsd:array)
if I try to run one of these (listtable function), that in wdsl displaye output xsd:array, and in .net reflector in return value in string, i got output as string value (not object) and I can't do anything that i can should do if the output in object or array
Not sure. Can't really tell unless I can try the WSDL...
+++ Rick ---
thanks a lot for your valueable respon.
in .net reflector displayed that all return value of ws function are in in string format, but in wdsl there is the fucntions that have return value in string, array or recordset format. ( xsd:array)
if I try to run one of these (listtable function), that in wdsl displaye output xsd:array, and in .net reflector in return value in string, i got output as string value (not object) and I can't do anything that i can should do if the output in object or array
West Wind Technologies
Making waves on the Web
from Hood River