error handling

Hello guys,
i am trying to handle errors with the usual On Error GoTo blob: however this call to a webservice is not going in there when there is an exception.
Can you guys help out on what to do on this?

thanks
mrb121212Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Muhammad KhanManager, ITCommented:
what webservice? :-?

is blob the valid label defined in the current procedure?
0
Leo EikelmanDirector, IT and Business DevelopmentCommented:
I don't get the question.

Say you make a call to the web service and an error occurs in the web service.  The error will be seen by the web service and not the application that CALLS the web service.  

So if an error occurs in your web service, then return something that will tell the calling application that an error has occured (Like the value -1 or an empty result).  Then just set up an IF statement in your application to check if an error occured and then do something to process the error.

Cheers,

Leo
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Leo EikelmanDirector, IT and Business DevelopmentCommented:
.. just to follow up.  Here is an example.

Say I make a call to a web service and it returns an XML String.  And I want to check if the XML is formatted correctly.  I would do something like this:

If (SomeDomDocument.parseError.errorCode <> 0) Then
            Dim xmlErr
            Set xmlErr = SomeDomDocument.parseError
            errorReason = xmlErr.reason
            Set xmlErr = Nothing
            Err.Raise 10001, "SomeClass", "Configuration File is not in XML format"
Else


Cheers,

Leo
0
mrb121212Author Commented:
thanks for the help Leo.
the 3rd party didn't have any error handling in the web service class and the class that talks to the web service.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.