473,409 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

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("MSSOAP.SOAPClient30")
par_ServiceName = "pinService"
par_Port = "PinServicePort"

strError = SOAPClient.mssoapinit(par_WSDLFile, par_ServiceName, par_Port)

SOAPClient.connectionproperty("timeOut") = 20000

strParam1 = "param1"
strParam2 = "param2"

set objResp = SOAPClient.pinvirtualtrans(strLote, strBill, strCodTarjeta,
strCodOperacion, strEntidad, strPosition)


Nov 23 '05 #1
2 8187
I am sorry for teh mistake, but the last line of code should be

set objResp = SOAPClient.pintrans(strParam1, strParam2)
"Jose Maestro" wrote:
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("MSSOAP.SOAPClient30")
par_ServiceName = "pinService"
par_Port = "PinServicePort"

strError = SOAPClient.mssoapinit(par_WSDLFile, par_ServiceName, par_Port)

SOAPClient.connectionproperty("timeOut") = 20000

strParam1 = "param1"
strParam2 = "param2"

set objResp = SOAPClient.pinvirtualtrans(strLote, strBill, strCodTarjeta,
strCodOperacion, strEntidad, strPosition)

Nov 23 '05 #2
I am sorry for teh mistake, but the last line of code should be

set objResp = SOAPClient.pintrans(strParam1, strParam2)
"Jose Maestro" wrote:
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("MSSOAP.SOAPClient30")
par_ServiceName = "pinService"
par_Port = "PinServicePort"

strError = SOAPClient.mssoapinit(par_WSDLFile, par_ServiceName, par_Port)

SOAPClient.connectionproperty("timeOut") = 20000

strParam1 = "param1"
strParam2 = "param2"

set objResp = SOAPClient.pinvirtualtrans(strLote, strBill, strCodTarjeta,
strCodOperacion, strEntidad, strPosition)

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mkosca01 | last post by:
Hello, I have recently downloaded and installed the Soap Toolkit 3.0 from microsoft. I have successfully created the example web service DocSample1 and am able to run this from the command line...
0
by: EagleRed | last post by:
I have written a Web service that I must access from a modified VC++ 6.0 console application. I am using the SOAP Toolkit version 2.0. I am using the HttpConnector, and the SoapSerializer to...
5
by: mark kurten | last post by:
i have a requirement to send a soap message to a web service. i'm familiar with the soap toolkit using vb. i need to generate a xml document which i think i can do, but i don't know how to...
4
by: Mark | last post by:
i have a very simple web servive Imports System.Web.Services <System.Web.Services.WebService(Namespace:="urn:Example1")> _ Public Class Example1 Inherits System.Web.Services.WebService
0
by: Sham Ramakrishnan | last post by:
guys... I have a SOAP service at my clients that I have to use to call the exposed methods... well... there are supposedly 3 ways in which I can look at doing it... 1. Create a proxy for the...
0
by: Jose Maestro | last post by:
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...
1
by: LP | last post by:
Hello, I am really hoping someone can help me here. I have a web service running on Win 2003 IIS 6.0, and VB6 client connecting to it with the use of Soap Toolkit. Everything worked fine until I...
0
by: jimmyfishbean | last post by:
Hi, I have a successful VB6 web service client that uses the SOAP Toolkit 3 to make calls to a web service written in ASP.Net (VB.Net). However, due to Microsoft not recommending the use of...
2
by: Karthik Chavan | last post by:
We have developed a webservice client in C++ using SOAP toolkit. Different requests are sent to the web service sequentially in a loop. Problem is that if one request fails for genuine “TIMEOUT”,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.