Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you pass an array of strings with SOAP?
Message
De
18/05/2006 19:31:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
01123163
Message ID:
01123441
Vues:
17
>I am trying to use Venali Fax Service. I can do outgoing faxes etc. They have a method to GetOutboundStatus. The third parameter is a simple string array that contains a GUID. I have tried, I think, everything from comarray to xml and it doesn't like my parameter. Anyone got any ideas?
>Entire WSDL can be found here
>
>http://webservices.venali.net/fax/1.0/faxservice.asmx?WSDL
>
>While I am at it. If I need an object of a type in the WSDL do I need to manually define a class that matches or can I import it somehow. Fairly new to this soap stuff.
>
>Thanks
>
>Walt
>
>My code
>
>dimension tid(1) as string
>tid(1)="{A05E5194-EFB8-4192-897C-41C1700646C0}"
>loWSHandler = NEWOBJECT("WSHandler","_ws3client.vcx")
>loFaxService = loWSHandler.SetupClient("http://webservices.venali.net/fax/1.0/faxservice.asmx?WSDL", "FaxService", "FaxServiceSoap")
>la=loFaxService.GetOutboundStatus("123456789","xyzeerree",@tid,"")

It's working for me passing an array (to be precise error I get is 5005 which resolves to "Credentials failure" or something like that, not parameter error). IOW same result from .Net.
I intentionally tested with sending someting that's not an array and got indeed transactionIds type mismatch error.
You don't need to define a class. You get back an XMLDOMDocument object or array (or a simple type).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform