In OTRS, how can ConfigItems be found using Webservices - web-services

I am building a website which is supposed to read ConfigItems of an OTRS system for maintenance purposes. So far I can find and use ConfigItems using the Webservice ConfigItem::ConfigItemGet and ConfigItem::ConfigItemSearch.
Sadly I am unable to find the option able to get all ConfigItems linked to a specific one. Is there an existing interface to query linked items or do I have to implement a new one?
Querys are sent from my angularjs website to a nodejs server which prepares the JSONs to interact with the OTRS 4.0.7 Rest interface. I don't need to change item in OTRS.

There is no web service available that returns the linked objects (either tickets or other CI's). It would be able to add this to Kernel/GenericInterface/Operation/ConfigItem/ConfigItemGet.pm but it's not there out of the box.

Related

Creating a New Web Service Consumer Domino

I am trying to import a WSDL in to my Domino Designer 9.0.1 client. I have downloaded the WSDL file and specify it in the Local File part of the wizard.
I click OK and get the error
"The requested operation failed. Server redirected too many times (20)"
I have imported other WSDL's without a problem and the only difference with the one I now need, is that I need to login to see the WSDL.
Does this stop the wizard?
If so, is the only option writing the java agent from scratch to access the data?
Obviously I cannot provide the actual wsdl I am trying to attach to as it is a paid service, so not sure what other information I can provide to help find a solution.
Thanks
Graeme

wso2esb: can I use my own way to build a page that can add new proxy services?

wso2esb is based on a datasource, at first I thought that the data stored by the datasource contains the proxy service what is added by the wso2esb console, but I didn't find
corresponding data in that database, that is a big trouble for me.
Some users told me that the ui of wso2esb console is too complex and professional, so I want to build new pages that can let them add new proxy services and the methods are based on the original methods of wso2esb;
Is there original codes of method that can help me with this?
I read the source code of wso2esb, but I didn't know how it handle the data from the webpage and how the data user input saved.
As I know, wso2esb deploys service automatically, if you put file in right directory. I advice to create artifact with UI, name it and then search in wso2esb home directory.
For example, directory for services: $CARBON_HOME/repository/deployment/server/synapse-configs/default/proxy-services
Although, I think that creating of UI with similar functionality is very strange idea and could be very hard.

How do I create a rest web service in Grails?

The idea is to call a method from a website(in php) to my application (in Grails). The application will serve data in json format.
The website and the application are hosted in two different servers. The website is on Yahoo and the application is on Rackspace.
Now, I want to create a web service in my Grails application which serves list of cities in json format.
City Class
class City {
String name
String code
}
How do i write the web service method?
Try the grails jaxrs plugin (https://github.com/krasserm/grails-jaxrs) which will do excactly what you want without any hassle.
Simply install it, create a Resource object with the introduced create-resource command and create and annotate the methods as you wish. all other things are managed by the plugin so you don't have to worry about Controller or UrlMapping...
You need only the annotation #Resource(uri='/cities') on your domain and call the url/cities.json (but, its'n RESTful)
You will want to use a few tools, first you will create a controller that deals with the requests and pushes them off to your service layer.
You can use URL Mappings to make it more RESTFul check out the doc that way all the http methods will be mapped to actions in your controller.
Also if you will be doing a fair bit of json I would recomend starting with the gson plugin it has a fuller feature set then the built in JSON support.
The link from the comment above is a great resource to read as well.
I have found that I most of the time want to support the accept header as well in which case you will need to update your config with the following code. See withFormat doc for more info.
grails.mime.use.accept.header = true

Flex4 - Refreshing Auto-Generated Web Service Classses

I am using Flex4 to connect to a SOAP web service. I'm generating the ActionScript classes using the Introspection Wizard in Flash Builder. That all works.
However, the web service is itself under development, so I need to periodically regenerate those AS classes to pick up the new methods or changed method signatures. The only way I've found to do that is to delete the existing classes, and re-run the wizard. HOWEVER, when I do that I also need to give the service a new name, or I see an error saying that the service already exists.
Is there any way to 'refresh' existing web service class definitions WITHOUT having to delete, come up with a new name, and re-create?
Thanks
Got it -- Show View -> Data/Services. You can refresh the service there and choose which methods to generate code for...

Sharepoint web services to edit existing list from desktop

Perhaps I am not asking or searching for this correctly:
I want to have a desktop script (currently using python) that will update a list on a sharepoint site.
The current script reads various file shares, ftp sites and a ArcGIS database to determine which metadata files have been updated and published. The script then writes all these results to a Excel spreadsheet.
We would like to do the same thing, but keep the data in a Share Point list instead of a spreadsheet. We don't need to upload any files (which is what I keep running across in my search) but just update or add to a list.
We could care less about what language or tools we use, we just don't have access to any custom coding on the Share Point server.
You should be able to use the lists webservice on the Sharepoint server,
the url is normally:
http://host/sitename/_vti_bin/lists.asmx
you are looking at the UpdateListItems webservice call. I don't know python but I use C# and work with sharepoint every day you can find a working example on MSDN on a Windows app to call the web service.