Précédent   Forum du club des développeurs et IT Pro > Autres langages > Général Visual Basic 6 et VBScript > VB 6 et antérieur
VB 6 et antérieur Visual basic 6 et versions antérieures. Avant de poster -> La FAQ VB6, Les tutoriels VB
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 06/12/2012, 10h21   #1
VILPELLET
Futur Membre du Club
 
Homme Christian
Ingénieur développement logiciels
Inscription : octobre 2005
Messages : 51
Détails du profil
Informations personnelles :
Nom : Homme Christian
Âge : 44
Localisation : France, Nord (Nord Pas de Calais)

Informations professionnelles :
Activité : Ingénieur développement logiciels
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : octobre 2005
Messages : 51
Points : 18
Points : 18
Envoyer un message via MSN à VILPELLET
Par défaut Pb Timeout sur appel Web Service

Bonjour,

J'ai créé un connecteur pour appeler un web Service à l'aide de l'objet SoapConnector30. Mais je n'arrive pas à maitriser la propriété Timeout de ce connecteur.
Lorsque j'applique 200 ms au timeout par moment l'appel se passe bien au bout de 906 ms et par moment çà ne se passe pas bien au bout de 797 ms.
Quelqu'un saurait il m'aiguiller sur ce sujet ?

Mes tests se font sur un système Windows Server 2008 R2 64bits.
Codes
Set Connector = New HttpConnector30
Connector.Property("Timeout") = 200
Connector.Property("EndPointURL") = http://localhost:81/nedaprfidwebservice.asmx
Connector.Property("EnableAutoProxy") = True

Connector.Property("SoapAction") = http://www.nedaplibrary.com/NedapRfi...vice/ReadLabel

Connector.Connect
Connector.BeginMessage
Connector.EndMessage

Set Reader = New SoapReader30
Reader.Load Connector.OutputStream

Cordialement,
Christian
VILPELLET est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/12/2012, 12h32   #2
ProgElecT
Rédacteur/Modérateur
 
Avatar de ProgElecT
 
Homme Francis MILLET
Inscription : décembre 2004
Messages : 3 199
Détails du profil
Informations personnelles :
Nom : Homme Francis MILLET
Âge : 57
Localisation : France, Haute Savoie (Rhône Alpes)

Informations professionnelles :
Secteur : Communication - Médias

Informations forums :
Inscription : décembre 2004
Messages : 3 199
Points : 5 109
Points : 5 109
Envoyer un message via MSN à ProgElecT
Sans balises code
Citation:
Connector.Property("EndPointURL") = http://localhost:81/nedaprfidwebservice.asmx
Connector.Property("SoapAction") = http://www.nedaplibrary.com/NedapRfi...vice/ReadLabel
Avec
Code :
1
2
Connector.Property("EndPointURL") = <a href="http://localhost:81/nedaprfidwebservice.asmx" target="_blank">http://localhost:81/nedaprfidwebservice.asmx</a>
Connector.Property("SoapAction") = <a href="http://www.nedaplibrary.com/NedapRfidWebService/ReadLabel" target="_blank">http://www.nedaplibrary.com/NedapRfi...vice/ReadLabel</a>
Avec mais en enlevant les balises [URL]
Code :
1
2
Connector.Property("EndPointURL") = http://localhost:81/nedaprfidwebservice.asmx
Connector.Property("SoapAction") = http://www.nedaplibrary.com/NedapRfidWebService/ReadLabel
Se qui laisse penser qu'il manque des "
Code :
1
2
Connector.Property("EndPointURL") = "http://localhost:81/nedaprfidwebservice.asmx"
Connector.Property("SoapAction") = "http://www.nedaplibrary.com/NedapRfidWebService/ReadLabel"
???
ProgElecT est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/12/2012, 12h46   #3
VILPELLET
Futur Membre du Club
 
Homme Christian
Ingénieur développement logiciels
Inscription : octobre 2005
Messages : 51
Détails du profil
Informations personnelles :
Nom : Homme Christian
Âge : 44
Localisation : France, Nord (Nord Pas de Calais)

Informations professionnelles :
Activité : Ingénieur développement logiciels
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : octobre 2005
Messages : 51
Points : 18
Points : 18
Envoyer un message via MSN à VILPELLET
Effectivement ce sont des chaines de caractères.

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
Set Connector = New HttpConnector30
Connector.Property("Timeout") = 900
Connector.Property("EndPointURL") = "http://localhost:81/nedaprfidwebservice.asmx"
Connector.Property("EnableAutoProxy") = True
 
Connector.Property("SoapAction") = "http://www.nedaplibrary.com/NedapRfi...vice/ReadLabel"
 
Connector.Connect
Connector.BeginMessage
Connector.EndMessage
 
Set Reader = New SoapReader30
Reader.Load Connector.OutputStream
Ce que je ne comprends pas avec le timeout, quand j'affecte la propriété Timeout du connecteur à 900 ms; à l'exécution le timeout se déclenche à 500 ms.
VILPELLET est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 16h33.


 
 
 
 
Partenaires

Hébergement Web