Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and JDEdwards
Message
De
17/04/2003 02:23:25
 
 
À
16/04/2003 14:54:37
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00776546
Message ID:
00778732
Vues:
16
The PC that will actually makes the calls to the JDE will need jde client installed. This applies when calling function via xml as well. If your web server gets the data from jde and then sends them to the clients, then i suppose either you will need to install jde client on this web server (to make direct calls) or you can have a separate dcom server with jdeclient on it. Then you have to call com from the web server via dcom and you may need to make some wrapper objects around your com objects. Any way this second solution is a little bit complicated. I would propose, you install a pc with jdeclient on it and try to configure com on this pc and try to make your function to work. Then you can go one step further with calling via web server.

Dim.

>Dimitris,
>
>Thanks for the examples. We'll try them out.
>
>One more question, I read in the JDE docs that the client PC needs the following files:
>JDECOMConnector2.exe
>JDECOMMN.dll
>Callobject.dll
>Comlog.dll
>Xmlinterop.dll
>
>Is this all the client PC needs or will the client PC need OneWorld installed on it also? The client PC in this case is our web server. Or do we just need the above files installed on the client?
>
>Thanks for your help.
>
>Jerry
>
>
>
>
>>Below i give you an example on how to call the MBF 'ABCustomerAmtsDates'
>>
>>
>> DECLARE STRING jdeXMLCallObject IN d:\b7\system\bin32\xmlcallobj.dll ;
>>   STRING  szXMLRequest, ;
>>   INTEGER size, ;
>>   STRING  szDestName, ;
>>   INTEGER @pbSuccessful
>>
>>  TEXT TO cJDEXML NOSHOW
>><?xml version='1.0' encoding='utf-8' ?>
>><jdeRequest type='callmethod' user='JDE USERNAME' pwd='JDE PASS' environment='PY7333' >
>>	<callMethod app='VFP' name='ABCustomerAmtsDates'>
>>			<param name='mnAddressNumber '>10505</param>
>>			<param name='szCompany '>00001</param>
>>	</callMethod>
>></jdeRequest>
>>  ENDTEXT
>>  cJDEXML = cJDEXML+ CHR(0)
>>  lnSuccessful = 0
>>  *
>>  lcJdeXmlResponse = ;
>>  jdeXMLCallObject(cJDEXML, 0, "yourservernamewhere_jdedata_reside",   lnSuccessful)
>>  ?lcJdeXmlResponse
>>
>>
>>TO GET THE FUNCTION TEMPLATE :
>>
>>
>>
>> DECLARE STRING jdeXMLCallObject IN d:\b7\system\bin32\xmlcallobj.dll ;
>>   STRING  szXMLRequest, ;
>>   INTEGER size, ;
>>   STRING  szDestName, ;
>>   INTEGER @pbSuccessful
>>
>>  TEXT TO cJDEXML NOSHOW
>><?xml version='1.0' encoding='utf-8' ?>
>><jdeRequest type='callmethod' user='JDE USERNAME' pwd='JDE PASS' environment='PY7333' >
>>	<callMethodTemplate app='VFP' name='ABCustomerAmtsDates'>
>>	</callMethod>
>></jdeRequest>
>>  ENDTEXT
>>  cJDEXML = cJDEXML+ CHR(0)
>>  lnSuccessful = 0
>>  *
>>  lcJdeXmlResponse = ;
>>  jdeXMLCallObject(cJDEXML, 0, "yourservernamewhere_jdedata_reside",   lnSuccessful)
>>  ?lcJdeXmlResponse
>>
>>
>>
>>Dimitris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform