Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call an xml JDEdwards DLL
Message
 
 
To
19/06/2001 05:34:32
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00520900
Message ID:
00521123
Views:
22
This message has been marked as the solution to the initial question of the thread.
declare string jdeXMLRequest in jdedwards.dll ;
   string szHostName, ;
   short usPort, ;
   integer nNetTimeout, ;
   string XML, ;
   integer size

pszXML = "this is an XML document"

? jdeXMLRequest( "ntintel5", 6096, 60, pszXML + chr(0), 0 ) && add terminating nullchar for C

or

? jdeXMLRequest( "ntintel5", 6096, 60, pszXML, len( pszXML ) ) && send length instead 
>JDEdwards has an interface (among other interfaces like COM) for calling its business functions thru XML. This requires a DLL function call which is documented below:
>
>char * jdeXMLRequest(const char *szHostName, unsigned short usPort, const int nNetTimeout, void *XML, int size)
>
>Parameters
>---------------
>szHostName
>OneWorld enterprise server host name
>
>
>usPort
>OneWorld enterprise server port number
>
>
>nNetTimeout
>Time out value for the request. Time out value is in seconds.
>
>XML
>Input XML document
>
>size
>XML document size
>A value less than or equal to zero indicates that the XML parameter is a NULL terminated string. Size will be obtained from the string.
>
>
>with an example in C:
>char* pszResp = jdeXMLRequest("ntintel5", 6096, 60, (void*)pszXML), 0);
>
>Any Idea pls on how to make it work in VFP ???
>Thank You !
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform