SOAP Toolkit 3.0 client not using timeout

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

    SOAP Toolkit 3.0 client not using timeout

    I am using MS SOAP client provided with SOAP Toolkit 3.0. I have set the
    timeout for this application to 20 seconds.
    On some occasions, when there are network problems and the call to the
    webservice is not able to complete succesfully, the client waits for 50
    seconds before returning an error.

    I include an example of the code I am using to set this timeout:

    dim SOAPClient
    dim par_WSDLFile, par_ServiceName , par_Port
    dim strParam1, strParam2
    dim objResp

    par_WSDLFile = "c:\webservice. wsdl"

    set SOAPClient = createobject("M SSOAP.SOAPClien t30")
    par_ServiceName = "pinService "
    par_Port = "PinServicePort "

    strError = SOAPClient.msso apinit(par_WSDL File, par_ServiceName , par_Port)

    SOAPClient.conn ectionproperty( "timeOut") = 20000

    strParam1 = "param1"
    strParam2 = "param2"

    set objResp = SOAPClient.pinv irtualtrans(str Lote, strBill, strCodTarjeta,
    strCodOperacion , strEntidad, strPosition)




  • Jose Maestro

    #2
    RE: SOAP Toolkit 3.0 client not using timeout

    I am sorry for teh mistake, but the last line of code should be

    set objResp = SOAPClient.pint rans(strParam1, strParam2)


    "Jose Maestro" wrote:
    [color=blue]
    > I am using MS SOAP client provided with SOAP Toolkit 3.0. I have set the
    > timeout for this application to 20 seconds.
    > On some occasions, when there are network problems and the call to the
    > webservice is not able to complete succesfully, the client waits for 50
    > seconds before returning an error.
    >
    > I include an example of the code I am using to set this timeout:
    >
    > dim SOAPClient
    > dim par_WSDLFile, par_ServiceName , par_Port
    > dim strParam1, strParam2
    > dim objResp
    >
    > par_WSDLFile = "c:\webservice. wsdl"
    >
    > set SOAPClient = createobject("M SSOAP.SOAPClien t30")
    > par_ServiceName = "pinService "
    > par_Port = "PinServicePort "
    >
    > strError = SOAPClient.msso apinit(par_WSDL File, par_ServiceName , par_Port)
    >
    > SOAPClient.conn ectionproperty( "timeOut") = 20000
    >
    > strParam1 = "param1"
    > strParam2 = "param2"
    >
    > set objResp = SOAPClient.pinv irtualtrans(str Lote, strBill, strCodTarjeta,
    > strCodOperacion , strEntidad, strPosition)
    >
    >
    >
    >[/color]

    Comment

    • Jose Maestro

      #3
      RE: SOAP Toolkit 3.0 client not using timeout

      I am sorry for teh mistake, but the last line of code should be

      set objResp = SOAPClient.pint rans(strParam1, strParam2)


      "Jose Maestro" wrote:
      [color=blue]
      > I am using MS SOAP client provided with SOAP Toolkit 3.0. I have set the
      > timeout for this application to 20 seconds.
      > On some occasions, when there are network problems and the call to the
      > webservice is not able to complete succesfully, the client waits for 50
      > seconds before returning an error.
      >
      > I include an example of the code I am using to set this timeout:
      >
      > dim SOAPClient
      > dim par_WSDLFile, par_ServiceName , par_Port
      > dim strParam1, strParam2
      > dim objResp
      >
      > par_WSDLFile = "c:\webservice. wsdl"
      >
      > set SOAPClient = createobject("M SSOAP.SOAPClien t30")
      > par_ServiceName = "pinService "
      > par_Port = "PinServicePort "
      >
      > strError = SOAPClient.msso apinit(par_WSDL File, par_ServiceName , par_Port)
      >
      > SOAPClient.conn ectionproperty( "timeOut") = 20000
      >
      > strParam1 = "param1"
      > strParam2 = "param2"
      >
      > set objResp = SOAPClient.pinv irtualtrans(str Lote, strBill, strCodTarjeta,
      > strCodOperacion , strEntidad, strPosition)
      >
      >
      >
      >[/color]

      Comment

      Working...