Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / June 2005

Tip: Looking for answers? Try searching our database.

SOAP Toolkit 3.0 client not using timeout

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jose Maestro - 23 Jun 2005 20:43 GMT
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)
Jose Maestro - 23 Jun 2005 22:48 GMT
I am sorry for teh mistake, but the last line of code should be

set objResp = SOAPClient.pintrans(strParam1, strParam2)

> I am using MS SOAP client provided with SOAP Toolkit 3.0. I have set the
> timeout for this application to 20 seconds.
[quoted text clipped - 24 lines]
> set objResp = SOAPClient.pinvirtualtrans(strLote, strBill, strCodTarjeta,
> strCodOperacion, strEntidad, strPosition)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.