LOCAL loOnlineMessageServiceRPC AS "XML Web Service" * LOCAL loOnlineMessageServiceRPC AS "MSSOAP.SoapClient30" * Do not remove or alter following line. It is used to support IntelliSense for your XML Web service. *__VFPWSDef__: loOnlineMessageServiceRPC = http://localhost:5099/OnlineMessageServiceRPC?wsdl , OnlineMessageServiceService , OnlineMessageServiceRPC LOCAL loException, lcErrorMsg, loWSHandler SET STEP ON TRY loWSHandler = NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx") loOnlineMessageServiceRPC = loWSHandler.SetupClient("http://localhost:5099/OnlineMessageServiceRPC?wsdl", "OnlineMessageServiceService", "OnlineMessageServiceRPC") * Call your XML Web service here. ex: leResult = loOnlineMessageServiceRPC.SomeMethod() CATCH TO loException lcErrorMsg="Error: "+TRANSFORM(loException.Errorno)+" - "+loException.Message DO CASE CASE VARTYPE(loOnlineMessageServiceRPC)#"O" * Handle SOAP error connecting to web service CASE !EMPTY(loOnlineMessageServiceRPC.FaultCode) * Handle SOAP error calling method lcErrorMsg=lcErrorMsg+CHR(13)+loOnlineMessageServiceRPC.Detail OTHERWISE * Handle other error ENDCASE * Use for debugging purposes MESSAGEBOX(lcErrorMsg) FINALLY ENDTRY y = loOnlineMessageServiceRPC.invoke("asd","test","testrpc") && this line gives errorany ideas on this one ?