working with client SOAP::Lite COM with VB6
cyrille <[email protected]> Wed, 30 Apr 2003 20:21:17 +0200
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <[email protected]> |
Hello all,
I'm using soap with PHP (nusoap) and with PERL (Soap::Lite)
without any problem.
But when I'm starting to try with MsVisualBasic 6 with Soap::Lite COM
problems comes ... ;o{
I can't find many documentation about using Soap::Lite COM, so I don't know Objects methods and
properties. I need to work with array within array within array ... Only arrays and indexes, can't find
any vocabulary like hash keyname or object methods.
Here it is a -PHP NuSoap- function registred has a -server web service- :
function getList(){
$a = array( "foo"=>"abc", "bar"=>"xyz" );
$b = array( "foo"=>"123", "bar"=>"789" );
return array( $a, $b );
}
How can I use the -Soap::Lite COM- result after a call to remote method getList() ?
some code in VB6 :
Set soap = getSoapliteInstance()
Set o = soap.getList()
res = o.result
At this time, variable "res" is Array of Array.
I can't find back the notion of hash keynames like "foo" and "bar" in server side.
How can I exploite that ?
Like :
res.foo
or
res.<a method>( "foo" );
Thanx a lot,
Cyrille
for detail, an short version of VB6 getSoapliteInstance()
Public Function getSoapliteInstance() As Object
Set soaplite = CreateObject("SOAP.Lite")
Set soapliteInstance = soaplite.new( "proxy", Servers(current_server), "uri", "urn:Test" )
Set getSoapliteInstance = soapliteInstance
End Function
===================