XML Services Service Collaboratif, (Web, Web Services, PDA, WidGet, Fat Client)
XAS.Services
  XML Kiosk  
Technologie XAS.Technology Version V 6.0.1
Dernière modification Jeudi 3 Juin 2010 Par Zaïr BEZGHICHE
Dernière vérification Samedi 19 Juin 2010 Par Support France
ThèmeXML Services Service Collaboratif, (Web, Web Services, PDA, WidGet, Fat Client) Fonction ESHOP.ESHOPInitSession

Prototype
Function ESHOPInitSession (sCompo As String, iMode As Integer, spw As String) As Integer
Usage
XML-Services-Service-Collaboratif.ESHOPInitSession(...)
HTTP (GET,POST)SOAP WSDLSOAP RESTXML-RPC
Format de sortie
XML HTML TEXT EXCEL(CSV)

Code Source - développement open source
Function ESHOPInitSession (sCompo As String, iMode As Integer, spw As String) As Integer
Function ESHOPInitSession (sCompo As String, iMode As Integer, spw As String) As Integer
Dim Ret%
Dim sPost$
Dim sconfig$
Dim sReq$
 


GlobESHOPModeCall = 1

sPost = "GET /"

GlobESHOPLastURL = "XasOpenSession(" + GlobESHOPUserName + ","
GlobESHOPLastURL = GlobESHOPLastURL + spw + ","
GlobESHOPLastURL = GlobESHOPLastURL + sCompo + ","
GlobESHOPLastURL = GlobESHOPLastURL + CStr(iMode) + ","
GlobESHOPLastURL = GlobESHOPLastURL + GlobESHOPFileSession + ",);"
GlobESHOPLastURL = GlobESHOPLastURL + "?XCMD." + CStr(XasGetRanDom(1000, 9900))
GlobESHOPLastURI = XasSECEncrypt(1, GlobESHOPUserName, spw, GlobESHOPLastURL)


sPost = sPost + GlobESHOPLastURI + " HTTP/1.0" + Chr$(13) + Chr$(10)
sPost = sPost + "Accept: */*" + Chr$(13) + Chr$(10)
sPost = sPost + "Referer: http://" + GlobESHOPCurHost + Chr$(13) + Chr$(10)
sPost = sPost + "Accept-Language: fr" + Chr$(13) + Chr$(10)
sPost = sPost + "Content-Type: text/html" + Chr$(13) + Chr$(10)
sPost = sPost + "Proxy-Connection: Keep-Alive" + Chr$(13) + Chr$(10)
sPost = sPost + "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" + Chr$(13) + Chr$(10)
sPost = sPost + "Host: " + GlobESHOPCurHost + Chr$(13) + Chr$(10)
sPost = sPost + "Pragma: no-cache" + Chr$(13) + Chr$(10)
sPost = sPost + Chr$(13) + Chr$(10) + Chr$(13) + Chr$(10)

sconfig = "RESEAU=" + CStr(XASRESEAU_HTTPWEB) + ";"
sconfig = sconfig + "MEDIA=" + CStr(XASMEDIA_WEB) + ";"
sconfig = sconfig + "HOST=" + GlobESHOPCurHost + ";"
sconfig = sconfig + "PORT=" + CStr(GlobESHOPCurPort) + ";"
sconfig = sconfig + "MAXCONNEXION=20;"
sconfig = sconfig + "TAILLEPAQUET=255;"
sconfig = sconfig + "NUMCARTE=1;"
sconfig = sconfig + "NUMLIGNE=1;"
sconfig = sconfig + "TIMEOUT=20;"
sconfig = sconfig + "USERID=" + CStr(-1) + ";"
sconfig = sconfig + "COMPONENT=" + GlobCurService + ";"
sconfig = sconfig + "POST=;" + sPost
Ret = XasUserCall(sconfig)


End Function

Références XAS.Technology
Cstr , XasGetRandom , XasSECEncrypt , Chr , XasUserCall ,

Audience
Cette documentation est destinée aux personnes s'intéressant aux systèmes d'information collaboratifs.
Les Webservices, les architectures collabortives et distribuées, les moteurs transactionnelles et les concepts de programmation orientés objet.


XAS Services - Zaïr BEZGHICHE - Copyright 1991-2011 tous droits réservés- Powered by XAS.Technology