Maxim Ness
Active Member
Hello,
I created a sample console app in Visual Studio 6, which fails to submit XML request to an Enterprise server. The procedure of converting MS projects to Unicode explained here (http://www.mihai-nita.net/article.php?artID=20060723a)
#include <stdio.h>
//
//
//
char* __stdcall jdeXMLRequest(unsigned short const *,unsigned short,int,void *,int);
char* __stdcall jdeFreeXMLResponse(void *);
int wmain( int argc, char ** argv )
{
unsigned short * host = L"AS400SERVER";
char *request ="<?xml version='1.0' encoding='UTF-8'?><jdeRequest pwd='password' type='callmethod' user='user' session='' environment='DV7333' sessionidle=''><callMethodTemplate name='GetAuditInfo' app='AwiIntegrations' /></jdeRequest>";
char* resp ="";
printf("Request: %s\n", request);
resp = jdeXMLRequest((unsigned short*)host,6010,100000,(void*)request,0);
printf("Response: %s\n", resp);
jdeFreeXMLResponse(resp);
return 0;
}
I execute this code from a workstation which has a FAT client installed. The app returns following:
<returnCode code='14'>Connection to OneWorld failed</returnCode>
Just in case I decided to telnet to the enterprise server to a port 6010 and it responded.
Any thoughts?
Thank you in advance!
I created a sample console app in Visual Studio 6, which fails to submit XML request to an Enterprise server. The procedure of converting MS projects to Unicode explained here (http://www.mihai-nita.net/article.php?artID=20060723a)
#include <stdio.h>
//
//
//
char* __stdcall jdeXMLRequest(unsigned short const *,unsigned short,int,void *,int);
char* __stdcall jdeFreeXMLResponse(void *);
int wmain( int argc, char ** argv )
{
unsigned short * host = L"AS400SERVER";
char *request ="<?xml version='1.0' encoding='UTF-8'?><jdeRequest pwd='password' type='callmethod' user='user' session='' environment='DV7333' sessionidle=''><callMethodTemplate name='GetAuditInfo' app='AwiIntegrations' /></jdeRequest>";
char* resp ="";
printf("Request: %s\n", request);
resp = jdeXMLRequest((unsigned short*)host,6010,100000,(void*)request,0);
printf("Response: %s\n", resp);
jdeFreeXMLResponse(resp);
return 0;
}
I execute this code from a workstation which has a FAT client installed. The app returns following:
<returnCode code='14'>Connection to OneWorld failed</returnCode>
Just in case I decided to telnet to the enterprise server to a port 6010 and it responded.
Any thoughts?
Thank you in advance!