How can we add some more tasks to controlling datapower through SOAP UI using XML Interface other then prefixed in app-management protocol versions 3 - wsdl

Here i wanted to add more from tasks in app management protocol to control data power device through soap ui. is it okay to edit datapower wsdl file and add some actions into it. or is there any way to get third party tools ?
I tried soap ui to do control device which is just prefixed tasks and things. but never done editing is datapower wsdl device file, which is in production.

Related

Can we have an app share server(API) and client code (iOS/Android/Web) using Flutter/Dart?

Since Flutter already has taken a shared library approach for Android and iOS apps; is it possible to extend this idea to add server (API) code using Dart and web content using Angular-Dart? I can see examples of server and client code being shared, and can see Android and iOS code being shared (Flutter) - are there any examples where business logic is shared between iOS, Android, web and API code? Something similar to kotlin-multiplatform?
Just move your code in another Dart package that
does not depend (directly or transitive) on
dart:ui (Flutter)
dart:html or Angular (browser)
dart:io (server or console)
Everything that needs a dependency to one of these needs to be abstracted and then injected (passed as argument) when you use the platform-independent code on a specific platform.
You actually can share code between server and Flutter that depends on dart:io but such a dependency would prevent code being used in the browser.
See also
https://www.youtube.com/watch?v=PLHln7wHgPE
In a project I'm working on I have built_value model classes and built_redux (actions, reducers, state) in the shared package and use it in Flutter and Angular.
The main pain point was Firebase where the whole Firebase API needed to be abstracted because Angular and Flutter use different Firebase packages.
It wasn't too difficult, but cumbersome.
There are attempts to create a package that provide such an abstraction out of the box, but I don't know about the progress.

How to set up a sftp server on iOS

In my project, I would like to set up an sftp server on my iOS device which may use the app sandbox directory as root. Not a client which can connect to a sftp server.
Is it allowed to do so? What I've found on the internet are sftp clients , nothing for a server on iOS.
If we are allowed, is there any library we can use?
If not, how may I build the server myself?
I would go for an SFTP server written in C or C++.
There are lots of examples for these languages. e.g. sftp-server.c
You add the .c and .h file to the iOS project, you change the name of the main function to something else, you run the function formerly known as main in a separate thread (to liberate the main thread), and Bob's your uncle...

How to inject a dependency when deciding which dependency to use requires the use of the dependency

I have a classic bootstrapping problem. I am trying to inject the TFS client libraries for version control into my application, but I need to load different versions of the client library in different situations: the TFS 2013 client libraries cannot connect to TFS 2005 or TFS 2008 servers, so I need to load an earlier version of the client libraries when connecting to these older versions of TFS. I have found that I can reliably determine the version of TFS that I am connecting to by requesting the BuildServerVersion property from the IBuildServer service.
Normally I would solve this problem using an Abstract Factory pattern and use an IoC container to load the appropriate factory implementation; however, normally the decision would be entirely the responsibility of the application. In my situation, the decision is based on the response from the TFS server, and, crucially, I have to load a version of the TFS client library to request that information from the TFS server in the first place.
What approaches can I consider to address this problem?
Since it sounds like it's possible to have multiple versions of the client libraries loaded at the same time, the easiest solution is probably to take a hint from the Interface Segregation Principle. Define a Role Interface with the sole purpose of figuring out the BuildServerVersion.
It might be something like
public interface IBuildServerVersionQuery
{
Version GetBuildServerVersion();
}
You can then write an Adapter around one of the client libraries and use it to get the BuildServerVersion.
Then, when you have the BuildServerVersion, you can use it to implement an Abstract Factory that returns the real client library.
You can also use one of these selection mechanisms, such as Metadata, Role Interfaces, or (my preferred) Partial Type Name, to select the appropriate client library.
Unless the GetBuildServerVersion() method returns the version corresponding to the client library that implements IBuildServerVersionQuery interface itself, this means that you'll have a (now) redundant client library loaded into the AppDomain, but is that really a problem?
Can you load a version of the TFS libs in an AppDomain? Then you can make the call, unload the AppDomiain, which will unload the libs, and reload the correct version.

How to use the new Code Manager in the new Omniture Interface

I am confused within the new Omniture Interface for a small thing. I am trying to Generate SiteCatalyst JavaScript Code for my site.
Here is what I did.
Created Report Suites from Report Suite Manager.
and got confused how to generate code for my site.
See the old interface made it very clear to create code for my site by selecting a Report Suite as explained here.
But how to generate code by selecting a Report Suite in the new interface?
Thanks.
I don't know where the code generation is or if it even exists any longer. Have you considered using the tag manager?
It's in the Admin home under "Tag Management". You can download the site snippet from there. You will see all the code in your container at that point. You have to set variables a little differently when you use the tag manager at that point but there is plenty of documentation around it.
Code Manager
Code manager lets you download data collection code for web and mobile platforms.
Admin tools > Code Manager.
After you download the library, you must configure the code to send data to the correct tracking server and report suite.
Tag Manager
TagManager is the standard method for deployment of Adobe Marketing Cloud tags.Tag Manager 2.0 is the latest one available.
TagManager lets you:
Deploy Marketing Cloud products and Genesis integrations though a single hosted JavaScript file.
Manage tags and configuration in a secure administrative interface.
Test changes and quickly roll back to previous versions.
Use existing SiteCatalyst tags to implement TagManager without a complex deployment process.
Deploy third-party tags.
Dynamic Tag Manager
Adobe acquire Satellite and it is now DTM.It is the future of implementation.
Visit the link DTM
The old Code Manager is still there, just a bit hidden. If you go into the interface for Code Manager, just under that table is this text. It brings you to the old Code Manager:
To view the legacy code manager or download AppMeasurement libraries for BlackBerry, Windows Phone 7, or Symbian click here.
In future the world is expected to go with Tag Management and when you have time it is recommended that you implement that.
Thanks C.

Codenameone with WSDL NB - ClassDefNotFound

I have used NB to add a "client web service" to a Codename one app through the NB interface. This works fine in the simulator.
The WSDL classes are generated during build automatically and I have them landing in com.myco.myapp.generated package.
Having checked the generated JAR the WSDL classes are there all ok.
But when I push this to the "build for Android" to codename1, run on the device I get
An Internal application error occurred : java.lang.NoClassDefFoundError: com.myco.myapp.generated.SimpleStockList_Service
But the class is definitely there in the JAR.
I am sure its something to do with the JAR and its manifest, but never really had to get behind the scenes with Ant and JARs and builds to know what to do.
As the classes are generated during ant build, I can not pack them up into a library. (tried that and get fail due to 2 instances of same class.)
Codename One doesn't support binary libraries at this time, you will need to integrate the source code into the build process. There are many complexities involved in supporting binary libraries in such a setup.
Thanking Shai for his help.
Ultimate answer is not to use WSDL as moving objects relies Serialization which is not included in the small Java package.
Due to this I created a custom servlet which codename1 ConnectionRequest can deal with via a standard HTTP request.
This is how I achieved it
http://www.jamesarbrown.com/?p=164

Resources