Web Service Proxy Generator
webservice generator for vfp
Gravatar is a globally recognized avatar based on your email address. webservice generator for vfp
  n/a
  All
  Nov 22, 2015 @ 08:45pm
using west wind webservice for vfp, how i can get return array value...? ws provider developt with nusoap

Gravatar is a globally recognized avatar based on your email address. Re: webservice generator for vfp
  Rick Strahl
  ar1745
  Nov 23, 2015 @ 10:06am
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 Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: webservice generator for vfp
  n/a
  ar1745
  Nov 25, 2015 @ 06:39pm
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

Gravatar is a globally recognized avatar based on your email address. Re: webservice generator for vfp
  n/a
  Rick Strahl
  Nov 25, 2015 @ 06:41pm
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>



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



Gravatar is a globally recognized avatar based on your email address. Re: webservice generator for vfp
  Rick Strahl
  ar1745
  Nov 25, 2015 @ 11:37pm
Please repost this message and format the XML as code.

+++ 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




Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: webservice generator for vfp
  n/a
  Rick Strahl
  Nov 26, 2015 @ 10:33pm
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


Gravatar is a globally recognized avatar based on your email address. Re: webservice generator for vfp
  Rick Strahl
  ar1745
  Nov 26, 2015 @ 11:23pm

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


Rick Strahl
West Wind Technologies

Making waves on the Web
from Hood River

© 1996-2024