Make sure you *ALWAYS* use COMRETURNERROR in your web service error handler(or any vfp mtdll) ...
>I am linking through to a web service and the routines work fine 99% of the time but occassionally crash out with :
>
>OLE error code 0x800a1518: Unknown COM status code.
>
>I am using VFP7 and have registered the web service in Fox and used intellisense to generate the neccessary code ie
>
>loPOSService = loWS.SetupClient("MyURL?wsdl", "POSService", "POSServicePort")
>
>The program then checks that this has worked okay and doesn't go any further if it hasn't
>IF VARTYPE(loPOSService) <> "O"
> RETURN .f.
>ENDIF
>
>The next line of code is to create another object that contains the response from one of the methods of the service
>
>loResponse = loPOSService.invokePOSService(lcMethod, "7_0_5", lcSendString)
>
>This is the line that gives the occassional error.
>
>I've checked with the web service we are using to find out if there's a problem at their end but they couldn't see any reason why the problem is occassionally happening.
>
>Is there anything else I can do to stop it happening or to stop the program crashing out.
>
>Thanks
>
>Sue
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only