Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem Instantiating object method
Message
From
03/04/2002 10:09:40
Steven Edge
Soft Solutions Limited
Lagos, Nigeria
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00639832
Message ID:
00640342
Views:
29
No, I'm not behind a firewall. I am using MS proxy server, but as I was trying to call a webservice on the local network, that would probably not be the problem.

After some tinkering, I was able to call the webservice Babel Fish Web Service, and I got a response correctly. So, it is probably that I have something wrong locally.

>Are you behind a firewall? If so, that could be the problem. A couple of months ago there was a thread in here indicating some of the properties that you need to set to call web services when you are behind a firewall. I believe the properties were proxy and proxyport but I am not completely sure.
>
>
>>Hi.
>>
>>I just started with webservices. Following the examples in "What's new in Visual FoxPro 7" everything works well until I call a method.
>>
>>E.g.:
>>LOCAL oTest AS Test Web Service 2
>>LOCAL loWS
>>loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx")
>>loWS.cWSName = "Test Web Service 2"
>>oTest = loWS.SetupClient("http://gmtikys01/test2.wsdl", "Test2", "TestSoapPort")
>>?oTest.wstest("Hello")
>>
>>On the last line when I try to call a method, I get:
>>
>>"OLE Idispatch exeption code 0 from ENV Server: WSDL Operation: Instantiating the dispatch object method wsTest failed."
>>
>>If I call it as a COM object, I have no problem at all.
>>
>>I tried with the premade samples and samples I created myself. I tried on different machines. I am always getting the same result. Anyone has an idea what I am doing wrong?
>>
>>I'd appreciate some help.
>>
>>Steven
Previous
Reply
Map
View

Click here to load this message in the networking platform