mer. 13 septembre 2017, 01h29
Hamidou
Maroc
atoutfox.public.association
Re: Msxml.DOMDocument
Bonjour
Essais ConnectorProperty pour passer les params au Proxy
comme dans l exemple suivant
SET STEP ON
Local loDOM As "MSXML2.DomDocument", lcXML
TEXT TO lcXML NOSHOW
<coolio_words xmlns="
http://www.company.com/schemas/inc/coolio/1" message_id="string_1" senderId="sring_2" systemId="strng_3">
<client_insert staffId="string_4" ktl="string_5" rejectReason="" batchID="string_6" paysCode="string_7">
<client prix="string_8" date="2017-01-01T00:00:00" prixSystem="string_9" prixDesignation="string_10" />
</client_insert>
</coolio_words>
ENDTEXT
LOCAL llError, loException , o as MSSOAP.SoapClient30 ,lcUrl
lcUrl = "
http://localhost/FoxWebServiceInterop/" + ;
"FoxInteropService.asmx?WSDL"
o = CREATEOBJECT("MSSOAP.SoapClient30")
*
loException = null
llError=.f.
TRY
o.MSSoapInit(lcUrl)
CATCH TO loException
llError = .t.
ENDTRY
*
IF llError
? "Impossible de Charger le Fichier WSDL à partire de: " + lcUrl
return
ENDIF
*****PARAM DU PROXY : proprietes
O.ConnectorProperty("ProxyServer")="<CURRENT_USER>"
O.ConnectorProperty("ConnectTimeout")=5000
O.ConnectorProperty("Timeout")=10000
*******
loDOM = Createobject("MSXML.DomDocument")
loDOM.LoadXML(lcXML)
crdt
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000018448