>Using VFP7.
>
>I am trying to use the Fedx tracking web service, however I keep getting an "Unknown Com Status Code" error message. We are inside of a firewall, could that cause the problem?
>
>My code is below. However, when I type "o." in the prg, the "getstatus" method appears in intellisense. So I think my code should work unless I am missing something.
>
>
>LOCAL lc_trackno AS String
>lc_trackno = "myfedxtrackingno"
>
>LOCAL o AS wfedx1
>LOCAL loWS
>loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx")
>loWS.cWSName = "wfedx1"
>o = loWS.SetupClient("http://www.xmethods.net/sd/2001/FedExTrackerService.wsdl", "FedExTrackerService", "FedExTrackerPort")
>
>?o.getStatus(lc_trackno)
>
>
>Any suggestions.
>
>Thanks,
>
>Jerryt
Jerry,
I just tried this one and worked (if 45 F is true for Redmond WA - I had zipcode from there) :
lcZipCode='98052'
oWS = CREATEOBJECT("MSSOAP.SoapClient")
oWS.MSSoapInit("
http://www.xmethods.net/sd/TemperatureService.wsdl", "TemperatureService", "TemperaturePort")
?oWS.getTemp(lCZipCode)
Unknown COM status code sounds like a parameter is missing or incorrect ?
Cetin