Webservice error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lumen

    #1

    Webservice error

    hi,

    I've got a webproject that calls a webservice 4 times to check information
    in an CRM system. These checks are made in an asynchronous process. These
    processes call an instance of the webservice class, there all the functions
    of the webservice are grouped in functions.

    the first three times, it works perfectely also in the production
    environment, that is on a different domain/server. The fourth time, the
    asyncronous process starts, makes an instance of the "webservice " class and
    calls the function "ConfirmRegistr ation", but when it comes to the rule

    dim sResult as string=oService .Confirm(arg1,a rg2;arg3)

    The compiler stops at the catch section of the try catch, saying that the
    object reference is not set to an instance of an object.

    The webservice works perfectely, as I've tested seperately. But in this case
    the compiler doesn't even call the service, it jumps out of it due to this
    error.

    Does anyone have an idea regarding this?

    Thanks,
  • DWS

    #2
    RE: Webservice error

    dim sResult as string=oService .Confirm(arg1,a rg2;arg3)

    A syncronous call? I suspect oService has not been initialized or maybe set
    to nothing by some other process. set a breakpoint on your test machine and
    insure its value before the call. Also check your arg123 have some values.

    Good Luck
    DWS


    "Lumen" wrote:
    [color=blue]
    > hi,
    >
    > I've got a webproject that calls a webservice 4 times to check information
    > in an CRM system. These checks are made in an asynchronous process. These
    > processes call an instance of the webservice class, there all the functions
    > of the webservice are grouped in functions.
    >
    > the first three times, it works perfectely also in the production
    > environment, that is on a different domain/server. The fourth time, the
    > asyncronous process starts, makes an instance of the "webservice " class and
    > calls the function "ConfirmRegistr ation", but when it comes to the rule
    >
    > dim sResult as string=oService .Confirm(arg1,a rg2;arg3)
    >
    > The compiler stops at the catch section of the try catch, saying that the
    > object reference is not set to an instance of an object.
    >
    > The webservice works perfectely, as I've tested seperately. But in this case
    > the compiler doesn't even call the service, it jumps out of it due to this
    > error.
    >
    > Does anyone have an idea regarding this?
    >
    > Thanks,[/color]

    Comment

    • Lumen

      #3
      RE: Webservice error

      I found it, very stupid off course...
      I forgot to abort the tread when it finished executing, so when the service
      was called the 4th time, the three others where finished but not closed. The
      application pool generated an error of some sort. By ending the threads,
      there wasn't a problem anymore.

      Sorry for the stupid question, but thanks for the help.

      [color=blue]
      > dim sResult as string=oService .Confirm(arg1,a rg2;arg3)
      >
      > A syncronous call? I suspect oService has not been initialized or maybe set
      > to nothing by some other process. set a breakpoint on your test machine and
      > insure its value before the call. Also check your arg123 have some values.
      >
      > Good Luck
      > DWS
      >
      >
      > "Lumen" wrote:
      >[color=green]
      > > hi,
      > >
      > > I've got a webproject that calls a webservice 4 times to check information
      > > in an CRM system. These checks are made in an asynchronous process. These
      > > processes call an instance of the webservice class, there all the functions
      > > of the webservice are grouped in functions.
      > >
      > > the first three times, it works perfectely also in the production
      > > environment, that is on a different domain/server. The fourth time, the
      > > asyncronous process starts, makes an instance of the "webservice " class and
      > > calls the function "ConfirmRegistr ation", but when it comes to the rule
      > >
      > > dim sResult as string=oService .Confirm(arg1,a rg2;arg3)
      > >
      > > The compiler stops at the catch section of the try catch, saying that the
      > > object reference is not set to an instance of an object.
      > >
      > > The webservice works perfectely, as I've tested seperately. But in this case
      > > the compiler doesn't even call the service, it jumps out of it due to this
      > > error.
      > >
      > > Does anyone have an idea regarding this?
      > >
      > > Thanks,[/color][/color]

      Comment

      Working...