I have very big XML and a xsl. I created a C# method to connect database and included that method like XSLT1.0 which we can connect to c# method. But here nothing is working.
Please tell me the way of connecting to c# functions in Saxon HE 9.
Related
so i am able to call app insight's api "https://api.applicationinsights.io/v1/apps/xx/xx/xx" from my C# code.
i can get the json response.
i have this response in json and i want to serialize it into C# objects. do i have to create matching C# classes my self or is there any built in c# models i can use and serialize them?
Not really a direct answer to your question, but instead of consuming REST API directly and doing the conversion/serialization yourself you can simply use Application Insights .Net SDK.
The SDK will do all the necessary conversions for you and give you nice C# objects. The source code for this is also open source and is available here: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query.
You can take a look here for all the models available to you for direct use here: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Generated/Models.
In my opinion, if you choose to use app insights api, that means you didn't add any other sdk into your project, that means there's no any built in models for you.
And if you choose to use sdk instead, here's a sample for it, and per my testing, it only provides QueryResults as the response, here's my testing result, and this is the introduction for preparation. Pls note, you need wait for a while to make the newly added role to take effect. If you can't find the api permission mentioned in the document, you can search for it like what I did.
Im trying to create an Extension condition in C# based on the Installshield article http://helpnet.flexerasoftware.com/installshield21helplib/helplibrary/SteExtCondAuthor.htm#buildingconditionalstatements_384870052_1039129
but this is referencing c++. Anyone do this in c# or have some examples in c#
Conditions may be evaluated multiple times, so we suggest keeping extension conditions fast and implemented in C++. And as of yet there is no built-in C# support for extension conditions. That said, I've seen a utility that creates an unmanaged entry point that can run managed code, and you may be able to use that wrapper. (Unfortunately I do not remember what it is called.)
Once you have your managed code up and running, you just need to communicate back with the Suite. Do this by declaring the ISuiteExtension interface, and use the IDispatch parameter to your method as such, just like in the C++ example. Reference the topic Working with a Managed-Code Action in a Suite/Advanced UI Installation for the C# declaration of ISuiteExtension, and some samples of how to write code using it.
I have a lot of SSJS codes on many NSF, most of the NSF use the same functions code.
So I tried to make a Library with all the common functions, I'm trying to use the Xpages Starter Kit, because it claims to have SSJS Library Provider and implicit global SSJS.
There theres a Server.jss file that says "//your SSJS library code goes here".
I put some simple code there just to test it, but I couldn't figure out how it works.
print("Hello World");
function hello(){
print("hello");
}
How it works?
I made and install the update site, put the <openntf:canvas/> on a xpage. The canvas tag is created, but nothing seems to happen with the SSJS. Nothing on server console, and if a try to call hello function an error is raised.
How can I access SSJS functions on the library?
The library id - org.openntf.xsp.starter - is defined various places in the Starter Kit. It's also there with "/" instead of "." for some contexts.
Also, double-check the library has been enabled in Xsp Properties for your application.
It's also worth looking at the Domino Debug Plugin on OpenNTF to debug your code directly in Eclipse. Also check the Help > Support > Trace and Help > Support > Log in Domino Designer for any errors for your class.
I am trying to create and expose UI command in XPages(xpinc) IBM 9 but unsure of where to start.
There is new feature is avialable in IBM 9 to connect ClientSide JavaScript to Java classes
using XSP.executeCommand() from client side
seems we can expose UI commands using this concept such as Update the Notes status bar with
a user message, add an icon to the Notes workspace, etc
The concept is descriped in IBM 9 feature presenation. Refer the below link(page No 37 & 38)
(http://www.tlcc.com/admin/tlccsite.nsf/files/Whats_New_11-14-2012-sm.pdf/$FILE/Whats_New_11-14-2012-sm.pdf)
Can anyone show me easy way to create a sample?
Where do i have to write my java code and how do I link from client side?
Trying to source some sample code.
But basically your Eclipse plugin needs the following:
Extension point: com.ibm.xsp.rcp.ExtendedCommands
Implements: IExtendedCommands
Then you should be able to call it with the XSP.ExecuteCommand() method.
For examples on the NotesUIWorkspace API you can check out the Java UI API Exerciser on OpenNTF.
I wrote a c#.net 4.0 application and I need to send data to a VB6 application.
the VB6 can send and recive data via DDE, but I can't find any working and or understandable DDE protocol for my C# app. I can try and change the communication protocol of the VB app.
Do you have any suggestions for suitable protocol?
I found this topic and I think I will choose the TCP winsock protocol, which is availible at the two workspaces, but I can't find any working code sample of such multilanguege use of Winsock.
I'll be glad to get such example.
Thanks!
If you want to stick with DDE you could check out this project: http://ndde.codeplex.com/
or http://www.angelfire.com/biz/rhaminisys/ddeinfo.html. I have no experience using them, but they aim to solve the problem.
However, if you have the source code for the VB6 application, then it may be much simpler for you to expose a COM interface.
You can do so by changing the project from Standard EXE to ActiveX EXE and creating at least one public class exposing your methods. I did this for all my VB6 apps that previously used DDE and higly reccommend it. It gives the client application a better interface to work with.