Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not Creating Object Correctly
Message
De
19/02/2005 14:23:59
 
 
À
19/02/2005 08:39:30
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00985142
Message ID:
00988605
Vues:
68
Hi,

>>
When this.wsobject is first created with 'CreateObject(soapclient_class)' it has 'default' methods and I thought the soapclient_init would change it to have the methods picked up from the web service ready to be passed via 'setupclient' to loRegisterCustomer, but the methods remain unchanged ie it only has the ones I listed.
>>

This is normal - the web service methods do not become (visible) methods of the object.

>>lcResult = loRegisterCustomer.createSale("Sale1")

The XSD specifies that only two string values are valid parameters for this function:
    <restriction base="xsd:string">
     <enumeration value="PayMonthly"/>
     <enumeration value="ThreePay"/>
    </restriction>
so you should try either createSale("PayMonthly") or createSale("ThreePay").
HTH,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform