Date   

Re: Providing Web Services with magic xpa3.3 and axis2

Andreas Sedlmeier
 

Hi Luuk,

That link goes to your local disk, all those help pages are online too: http://kb.magicsoftware.com/articles/bl_Reference/Deploying-Web-Requesters-on-Different-Servers-xpa-3x . Thats however only about web requesters and b) a "not good for much" style document. In Xpi dopcumentation MSE typically invests a bit more and there's some more documentation. Starts here: http://kb.magicsoftware.com/articles/bl_Reference/Web-Services-Utility-xpi-45 

Actually I think, Xpa is around 15 years behind current webservices/microservice technology and you need Xpi (and Gigaspaces) anyway, if you plan to do something serious  ... with Magic technology for providing and consuming webservices. Probably you have your service (REST) done before you were able to explain your business partner what SOAP actually is. I just did not see later Xpi versions yet and cannot tell if it improved a lot in that respect. Was a pain too, webservixes with Xpi a few years ago.

Best regards,

Andreas


Re: Providing Web Services with magic xpa3.3 and axis2

אבי אבקסיס
 

Tank you Andreas

Till xpa 3.2 magic installs the systinet,  xpa3.X comes with well documented for systinet
in MasteringMagic xpa.pdf page 885,  but the instalation  includes tomcat and  axis2  and not systinet at all.

Best regards 
Avi 

‫בתאריך יום ג׳, 18 בדצמ׳ 2018 ב-18:13 מאת ‪Andreas Sedlmeier‬‏ <‪sedlmeier@...‬‏>:‬

Hi Avi,

As Gábor already mentioned, it's there (Axis2) and it even ships with Single User Edition of 3.3, only that you cannot use it with SU.

You can create a Axis2 component in CRR and press F1 and then you can dive into all the documentation (which is I think half a page for Axis2 alltogether).

Webservices with XPA and status of Systinet is a bit unclear, cause XPI 4.7 I think still would install Systinet (or Tomcat) and XPC is node.js anyways. Tomcat you could also get working with XPA, there's a requester, ... . Besides there's also another undocumented feature re webservices in Xpa: WCF (.NET) and some other stuff.

The idea behind not providing any documentation and/or samples is I think to keep the MSE consultants busy cause MSE is a PS organization anyways meanwhile (basically, imho). 

Best regards,

Andreas



Re: Providing Web Services with magic xpa3.3 and axis2

אבי אבקסיס
 

Tank you Gábor
I'll try it
Avi Avikasis

‫בתאריך יום ג׳, 18 בדצמ׳ 2018 ב-0:42 מאת ‪Gábor Bor‬‏ <‪bor.gabor@...‬‏>:‬

Hi Avi,

It's clearly supports it. The Tomcat Axis 2 environment is installed by my colleague but with configure the solution works fine. You could find too the MobileDevices webservice sample in the package. It gives sample, and with configure the java file which means the source of wsdl on axis 2 server, you could access it. 

I can use it by SOAPui and call from XPA with HTTPcall as well. I make the answer XMLs by XPA merge function and gives back on the Poperty sheet's Return value as Blob. (Try with types Unicode, Ansi, Byte)

You should try it. ;)

Best regards,
Gábor


Re: Providing Web Services with magic xpa3.3 and axis2

 

The helpfile of Magic XPA3.3a, is still linking to systinet:
file:///C:/Program%20Files%20(x86)/MSE/Magic%20xpa%203.3a/Help/index.htm#t=mergedProjects%2FMastering_eDeveloper%2FHow_Do_I_Provide_Web_Services_with_Magic_xpa.htm&rhsearch=web%20services&rhsyns=%20&rhhlterm=web%20services
…..

Verifying Systinet
When Systinet is installed, you will have some entries on your Start menu that will allow you to start and stop the server, and to use the Systinet console

….


But probably the helpdoc with these contents are the closest to this subject:
file:///C:/Program%20Files%20(x86)/MSE/Magic%20xpa%203.3a/Help/index.htm#t=mergedProjects%2FTechnical%20Notes%2FDeploying_Web_Requesters_on_Different_Servers.htm&rhsearch=tomcat&rhsyns=%20&rhhlterm=tomcat 


Re: Providing Web Services with magic xpa3.3 and axis2

Andreas Sedlmeier
 

Hi Avi,

As Gábor already mentioned, it's there (Axis2) and it even ships with Single User Edition of 3.3, only that you cannot use it with SU.

You can create a Axis2 component in CRR and press F1 and then you can dive into all the documentation (which is I think half a page for Axis2 alltogether).

Webservices with XPA and status of Systinet is a bit unclear, cause XPI 4.7 I think still would install Systinet (or Tomcat) and XPC is node.js anyways. Tomcat you could also get working with XPA, there's a requester, ... . Besides there's also another undocumented feature re webservices in Xpa: WCF (.NET) and some other stuff.

The idea behind not providing any documentation and/or samples is I think to keep the MSE consultants busy cause MSE is a PS organization anyways meanwhile (basically, imho). 

Best regards,

Andreas



Re: Providing Web Services with magic xpa3.3 and axis2

Gábor Bor
 

Hi Avi,

It's clearly supports it. The Tomcat Axis 2 environment is installed by my colleague but with configure the solution works fine. You could find too the MobileDevices webservice sample in the package. It gives sample, and with configure the java file which means the source of wsdl on axis 2 server, you could access it. 

I can use it by SOAPui and call from XPA with HTTPcall as well. I make the answer XMLs by XPA merge function and gives back on the Poperty sheet's Return value as Blob. (Try with types Unicode, Ansi, Byte)

You should try it. ;)

Best regards,
Gábor


Providing Web Services with magic xpa3.3 and axis2

אבי אבקסיס
 

Hi,
since magic xpa 3.3 is not includes any more systinet for web services,
so, how we can implement web services providing with xpa 3.3 ?
somebody mentioned that magic replace the systinet of java with axis2.
but I dont fined any document on this axis2.
Does xpa 3.3 support  axis2 ?
is there any document on this issue ? 
Thank's for any help
Avi Avikasis


Re: Brown Bag 2019

Andy Jerison
 

It's not too early for any non-Canadians who want to attend this valuable conference but have had a drunk-driving conviction to start the process of getting permission to cross the border. This site looks like a good place to find out how to go about it. It seems that even GW Bush needed a waiver.

On Fri, Nov 30, 2018 at 11:27 AM Andy Jerison via Groups.Io <droidaj=gmail.com@groups.io> wrote:
Moi aussi !

On Fri, Nov 30, 2018 at 10:23 AM Brenda Bullorini <bbullorini@...> wrote:
Count me in this time!


Re: Random Unknown Database Errors Pervasive 13 & Unipaas 1.9h

Andreas Sedlmeier
 

Hi Graham,

It might be a problem with .INI access for some reason, cause that's where Magic does read the list of databases from.

Do you have your .INI in UNC share too and do you work with resident .INI or not ?

I could imagine that the error goes away if you use resident .INI, unless its due to a side-effect of a bug in Magic which destroy the representation of that list in memory

Best regards,

Andreas


Re: Random Unknown Database Errors Pervasive 13 & Unipaas 1.9h

Graham White
 

Hi Maor,

All we get are entries like this

<-1                > 12/12/2018 16:09:47.655     [Error  ] - Unknown database, data source: Default Database, program: Application List
 <-1                > 12/12/2018 16:09:47.655     [Error  ] - Unknown database, data source: \\MG12\Magic\Common\Application_List_Admin.dat, program: Application List

Which is really all it tells us in the status bar at bottom of the screen.

Regards


Re: Random Unknown Database Errors Pervasive 13 & Unipaas 1.9h

מאור בכר
 

Hi Graham,

I would check in magic error log. In your project library it should be.

Upload the file here If you don't find the error yourself, or understand it.

Regards,
Maor.

On Dec 16, 2018 21:50, Graham White <graham.white@...> wrote:

Thanks Steve,

We don't map the drives they are all UNC paths.  Do you or anyone else have any other suggestions?

Regards
Graham


הודעה זו נשלחה אליך מטעם חברה בקבוצת מלם תים וייתכן שהיא מוגנת תחת סודיות מסחרית. כל הצעה, התחייבות או מצג מטעם החברה, מחייבים מסמך נפרד וחתום על ידי מורשה החתימה של החברה. החברה רשאית לנטר כל תכתובת העוברת בשרתיה והיא לא תישא באחריות לכל נזק, ו/או אובדן, שיבוש או פגיעה במידע כלשהו שנגרם מסיבות של תקיפה חיצונית ו/או זדונית על הארגון.


Re: Random Unknown Database Errors Pervasive 13 & Unipaas 1.9h

Graham White
 

Thanks Steve,

We don't map the drives they are all UNC paths.  Do you or anyone else have any other suggestions?

Regards
Graham


Looking for Magic work.

Stephen Saxton
 

Hi everybody
 
I'm starting to look again for more Magic work.  I worked for AOD (Answers On Demand) for 13 years prior to the acquisition by MatrixCare, using V8, eDeveloper, uniPaaS, and a smattering of XPA.  Spent the last two years working for 3 small; mom and pop places in V8, eDeveloper and uniPaaS.
 
If anybody is looking for somebody to fill in the holes of older apps, to help migrate to newer versions or just a plain workaholic in Magic; I'd like the opportunity to fill that position. 
 
Stephen (Steve) Saxton
CABS²
Magic Software Engineer/IT Help Desk
954-330-7894
SKYPE:  ssaxton2
Retired USAF TSgt


Re: Problem working with a DLL

Yns
 

Make sure that libraries you use inside the dll (ex : using System.Net.Sockets;), are also included in the Magic CRR. 


Re: Problem working with a DLL

sherman levine
 

Andreas,

Thank you for your reply

I had tried both the CallDLL and Call UDP methods..  Both worked fine for the calls which worked, and neither worked for the call which didn't work.

The call which doesn't work is a trivial modification of the ones which work, so I suspect I'm sending the proper parameters.

I've looked at the syntax of the calls in the demo program (which is VB .Net) and they are consistent with the document and with what I'm sending.

Sounds like next step is to review the sample code to see if it does anything I don't expect.

I do have wireshark and a network tap as well

Sherm

On 12/13/2018 08:52 PM, Andreas Sedlmeier wrote:

Hi Sherm,

If this is a standard Windows DLL and not some VB stuff then I think you just do not yet use that DLL correctly and call functions in wrong order or with invalid parameters or so. With that a "Magic-compatible DLL" (which exports a MAGIC_BIND to return an array with function descriptions) would not help.  You still would have to use the correct function signatures and call functions in correct order, if there"s some kind of state management or handles.

Actually, if it's 9.4, you already can use Call UDP for regular DLLs. You just have to prefix the module name with @ character and use that Magic parameter description string (which you know from CallDll) as first parameter, and add another variable as last parameter if the function has a return value.

That VB sample should have a .bas file somewhere where it lists all the DLL imports resp. the interface of that DLL. Do you have this ? And is this a VB6 example or VB.NET ?

Did you check if your application generates any network traffic or none at all. You can use tools like Wireshark or MS MessageANalyzer for this and capture network traffic of that vb sample and compare it with yours ...

Best regards,

Andreas



Re: BIND/OPEN is sometimes extremly slow in xpa with Oracle

Andreas Sedlmeier
 

Hi Gyula,

I too need some time (and a lot of coffee) in the morning to really get awake. I would forgive that program :)

You should start in monitoring sql performance on server side to see what actually happens there and for that there's plenty of options in Oracle (and Linux)

Best regards,

Andreas


Re: Problem working with a DLL

Andreas Sedlmeier
 

Hi Sherm,

If this is a standard Windows DLL and not some VB stuff then I think you just do not yet use that DLL correctly and call functions in wrong order or with invalid parameters or so. With that a "Magic-compatible DLL" (which exports a MAGIC_BIND to return an array with function descriptions) would not help.  You still would have to use the correct function signatures and call functions in correct order, if there"s some kind of state management or handles.

Actually, if it's 9.4, you already can use Call UDP for regular DLLs. You just have to prefix the module name with @ character and use that Magic parameter description string (which you know from CallDll) as first parameter, and add another variable as last parameter if the function has a return value.

That VB sample should have a .bas file somewhere where it lists all the DLL imports resp. the interface of that DLL. Do you have this ? And is this a VB6 example or VB.NET ?

Did you check if your application generates any network traffic or none at all. You can use tools like Wireshark or MS MessageANalyzer for this and capture network traffic of that vb sample and compare it with yours ...

Best regards,

Andreas



Re: Random Unknown Database Errors Pervasive 13 & Unipaas 1.9h

Steven Blank
 

Graham,

In my experience, "Unknown Database" usually results when the database with which a data source is associated is not defined in the INI file, a "hard" error that won't fix itself. The fact that your errors go away suggests that it's caused by Windows putting some network resource, such as a drive mapping, to sleep.

Do you point to any network resources using mapped drive letters? If so, switching to UNC may solve the problem.

Steve Blank


On 12/12/2018 12:55 PM, Graham White wrote:

Hi,

 

We have an issue where users randomly get the error “Unknown database, data source: Filename” when starting Unipaas.  They may get it 2 or 3 times before it finally logs in Ok.  The ini’s have the correct mapping in them.  We upgraded to PSQL 13 and the occurrences dropped slightly but not altogether.  Does anyone have any idea of what could be causing it or where we should look to correct it.

 

Thanks in anticipation.

 

Graham White | Software Developer | Graham.White@... |
EC Credit Control |
www.eccreditcontrol.com |
invertedheader

This e-mail message and any attachments are confidential to EC Credit Control and subject to legal privilege. If you have received this e-mail in error, please advise the sender immediately and destroy the message and any attachments.  If you are not the intended recipient you are notified that any use, distribution, amendment, copying or any action taken or omitted to be taken in reliance of this message or attachments is prohibited.
 


Re: Problem working with a DLL

sherman levine
 

Nothing.

On 12/13/2018 04:10 PM, Steven Blank wrote:
When your program executes this Call UDP, what are you seeing in the
Activity Monitor? Any hints, error messages, anything?

On 12/13/2018 12:59 PM, sherman levine wrote:
UDP

I even tried CALLDLL (which worked for the same functions that Call UDP
did but not for the others)

On 12/13/2018 03:57 PM, Steven Blank wrote:
Sherm,

This DLL – are you calling it via Call UDP or Call COM?

Steve Blank


On 12/13/2018 12:45 PM, sherman levine wrote:
I have a DLL which interfaces with a set of network-connected digital
displays

The manufacturer supplies a VB executable (and its source code) which
use the DLL, and that .exe functions properly.

When I try to call the DLL from M9.4, I can get several functions to
work and return proper codes, but other comparably simple ones (for
example one which takes two integer parameters and lights all the
displays) do not.

I can see no difference between the functions that work and the ones
which don't.

The DLL communicates with the display controller over ethernet using
TCP/IP, by sending and receiving short "message control blocks"


Any thoughts about how to diagnose this problem, or solve it in a
different manner (e.g. creating a Magic-compatible DLL from VB)

Thanks

Shermn









Re: Problem working with a DLL

Steven Blank
 

When your program executes this Call UDP, what are you seeing in the Activity Monitor? Any hints, error messages, anything?

On 12/13/2018 12:59 PM, sherman levine wrote:
UDP

I even tried CALLDLL (which worked for the same functions that Call UDP
did but not for the others)

On 12/13/2018 03:57 PM, Steven Blank wrote:
Sherm,

This DLL – are you calling it via Call UDP or Call COM?

Steve Blank


On 12/13/2018 12:45 PM, sherman levine wrote:
I have a DLL which interfaces with a set of network-connected digital
displays

The manufacturer supplies a VB executable (and its source code) which
use the DLL, and that .exe functions properly.

When I try to call the DLL from M9.4, I can get several functions to
work and return proper codes, but other comparably simple ones (for
example one which takes two integer parameters and lights all the
displays) do not.

I can see no difference between the functions that work and the ones
which don't.

The DLL communicates with the display controller over ethernet using
TCP/IP, by sending and receiving short "message control blocks"


Any thoughts about how to diagnose this problem, or solve it in a
different manner (e.g. creating a Magic-compatible DLL from VB)

Thanks

Shermn






6781 - 6800 of 196084