Bonjour à tous,
Je voudrais simplement écrire une valeur dans un webservice mais cela ne fonctionne pas.
Voici comment je procède :
Voici un impEcran de mon webservice :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 monTabVar est un tableau de chaînes = ["FABRIC.EM.TAB_RC.DONNEES.VARIABLES_01"] monTabVal est un tableau de chaînes = ["9397"] WriteVar est RealTimeData.Write WriteVarReponse est un RealTimeData.WriteResponse WriteVar.SessionId = idSession WriteVar.variableNames.string = monTabVar WriteVar.variableValues.anyType = monTabVal WriteVarReponse = RealTimeData.Write(WriteVar) machaine est une chaîne = "Code : "+WriteVarReponse.results.Result.code Info(machaine)
On peux voir sur la variable anytype qu'elle est en dynamique.
Et voici le XML :
Il me renvoi bien qu'il a écrit dans la variable, mais lorsque je vais voir dans la variable la valeur, il y a :
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 POST /realtimedata/realtimedata.asmx HTTP/1.1 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://WebServicesToolkit.net/SV/RealTimeData/v1.0/Write" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <MessageHeader xmlns="http://WebServicesToolkit.net/SV/RealTimeData/v1.0/"> <MessageTimeStamp>string</MessageTimeStamp> <MessageIssuer>string</MessageIssuer> <Signature>string</Signature> </MessageHeader> </soap:Header> <soap:Body> <Write xmlns="http://WebServicesToolkit.net/SV/RealTimeData/v1.0/"> <SessionId>string</SessionId> <variableNames> <string>string</string> <string>string</string> </variableNames> <variableValues> <anyType /> <anyType /> </variableValues> <writeParameters> <CustomUserName>string</CustomUserName> </writeParameters> </Write> </soap:Body> </soap:Envelope>
System.Xml.XmlNode[]
Merci d'avance de votre aide.
Partager