Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not Creating Object Correctly
Message
From
19/02/2005 14:23:59
 
 
To
19/02/2005 08:39:30
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00985142
Message ID:
00988605
Views:
81
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform