• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

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
0
mrb121212
Asked:
mrb121212
  • 2
1 Solution
 
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
 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now