I don't know.  Does it need it?  Here is the code I'm calling:

Lparameters acct, fileName, targetTable

Local loSQLMonitorService As "XML Web Service"
* LOCAL loSQLMonitorService AS "MSSOAP.SoapClient30"
* Do not remove or alter following line. It is used to support IntelliSense for 
your XML Web service.
*__VFPWSDef__: loSQLMonitorService = 
http://dev4/SQLMonitor/SQLMonitorService.asmx?WSDL , SQLMonitorService , 
SQLMonitorServiceSoap
Local loException, lcErrorMsg, loWSHandler
Try
        loWSHandler = 
Newobject("WSHandler",Iif(Version(2)=0,"",Home()+"FFC\")+"_ws3client.vcx")
        loSQLMonitorService = loWSHandler.SetupClient(m.wsdlCntrct, 
"SQLMonitorService", "SQLMonitorServiceSoap")
        leResult = loSQLMonitorService.InsertAccountDrugFileTrigger(fileName, 
targetTable, acct)

Catch To loException
        lcErrorMsg="Error: "+Transform(loException.Errorno)+" - 
"+loException.Message
        Do Case
                Case Vartype(loSQLMonitorService)#"O"
* Handle SOAP error connecting to web service
                Case !Empty(loSQLMonitorService.FaultCode)
* Handle SOAP error calling method
                        lcErrorMsg=lcErrorMsg+Chr(13)+loSQLMonitorService.Detail
                Otherwise
* Handle other error
        Endcase
* Use for debugging purposes
        leResult = lcErrorMsg
Finally
Endtry
Return leResult

Thanks,
 
Nick Cipollina
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hal Kaplan
Sent: Friday, July 28, 2006 4:26 PM
To: [EMAIL PROTECTED]
Subject: RE: Calling a web service from VFP

Does the failing machine have MSXML or MSXMLHTTP or whatever control you are 
using to talk to the web?

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Cipollina
Sent: Friday, July 28, 2006 16:12
To: [email protected]
Subject: Calling a web service from VFP

Hello All,

I've recently made a change to an existing foxpro app so that it will call a 
web service to update some tables.  It worked just fine on my pc, but we've 
deployed the app to the location that it will run and it can no longer call the 
web service.  It cannot create the web service object.  What am I missing?

Thanks,

Nick Cipollina
 
.Net Developer
ACS Heritage, Inc.
2810 North Parham Road, Suite 210
Richmond, VA 23294
(804)965-8294



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to