Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call an xml JDEdwards DLL
Message
From
20/06/2001 03:09:01
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00520900
Message ID:
00521291
Views:
15
Thank you very much for the response. I couldn't understand the "(void*)pszXML". How comes that this is just a string? Shouldn't be "(char*)pszXML". Sorry for my very limited knowledge of C.

Thank You

>
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 !
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform