Webservices

Post Reply
malecube
Posts: 206
Joined: 19. May 2015, 13:40
Contact:

Webservices

Post by malecube » 13. Sep 2016, 13:21

Hallo Ihr,

hat jemand von Euch schon mal soetwas gemacht? Und koennte es mir eventuell sogar erklaeren? ;-)
---- Schnipp ---
ich kann die Störungen auf dem Testsystem per WebService auslesen.
INC00028 | New | Neuanschluß eines Telefons per Hand zur Bestimmung von request.getContext()
INC00027 | Closed | Hier ein Ticket im neuen System
INC00026 | InProgress | Test auf Email-Adresse aus einem Ticket
INC00025 | New | Test
INC00024 | New | ID nicht da.
INC00023 | Closed | Ein Test auf die Haustechnik ...

Um eine Störung im System anzulegen braucht es den Wert einer Variablen
( z.B. request.setContext("QA-System"); ).

Die Installationsanleitung sagt zu diesem Parameter folgendes:
Initial configuration and manual steps
For the availability of the new functionality no further configuration is necessary. For the configuration of the functionality itself, please read the following sections.
The Installation of these Webservices adds a Data-definition to the Global Configuration that contains two Attributes, for which values need to be assigned to render any Webservice calls operational. The Data-definition is CUSTM42GlobalConfigurationServices and it contains the String-Attribute SupportedContexts into which a comma-separated list of possible values must be supplied. Most Webservice calls require a Context parameter in the passed Request object, which must be one of the listed values defined as described above. The Data-definition CUSTM42GlobalConfigurationServices also contains a Relation-Attribute DefaultTicketCreator that holds a reference to a User that is used as the default creator for Tickets if a Webservice call supplies no value for it. Both of these Attributes are not visible anywhere in the UI oif the Service-Store. To make them editable, whoever administrates the Service-Store can either set the values directly in the database, or add a dialog-page for the Global Configuration CI and put UI-controls there and subsequently set the values in the Global Configuration dialog.
---- Schnapp ---

LG aus der Hitze

Alexandra

msteiner
Posts: 167
Joined: 05. Aug 2015, 15:01
Contact:

Re: Webservices

Post by msteiner » 14. Sep 2016, 09:01

was genau willst du machen? :?:

malecube
Posts: 206
Joined: 19. May 2015, 13:40
Contact:

Re: Webservices

Post by malecube » 14. Sep 2016, 09:07

Mit Hilfe des WebService ein neues Ticket anlegen.

Sven_Puth
Posts: 461
Joined: 07. Apr 2011, 15:55
Contact:

Re: Webservices

Post by Sven_Puth » 14. Sep 2016, 09:35

Ich habe noch nicht mit dieser Erweiterung gearbeitet, aber wenn ich die von dir kopierte Dokumentation richtig interpretiere... dann existiert versteckt ein neues Attribut SupportedContexts.
Dieses enthält eine Komma-getrennte Liste mit allen unterstützten Werten für setContext.
Wenn du sie noch nicht gepflegt hast fehlt womöglich der Eintrag für QA-System.

Du müsstest also dem Konfigurationselement "Global Configuration" eine neue Dialogseite hinzufügen und dort die Attributfelder hinzufügen, um diese in der Globalen Konfiguration zu editieren.
(Geht natürlich auch direkt über SQL, aber über Dialog ist es eleganter)
Tria-media - IT Solutions

malecube
Posts: 206
Joined: 19. May 2015, 13:40
Contact:

Re: Webservices

Post by malecube » 14. Sep 2016, 11:58

Hallo Sven,

Du hast ja Ideen ;-). Mir wird ganz schwindelig dabei. Ich weiss ueberhaupt nicht, wie ich dort etwas ausfuellen kann. Ich habe mal einen Screenshot gemacht. Ist das die Stelle? Und was schreibe ich dann in die einzelnen Abteilungen rein? Muss das einen bestimmten Namen haben, z. B.? Meine Guete, so viel Unwissenheit meinerseits tut mir schon echt leid....

LG und schon mal vielen, vielen Dank

Alexandra
global_configuration_1.PNG
(76.13 KiB) Downloaded 259 times

Sven_Puth
Posts: 461
Joined: 07. Apr 2011, 15:55
Contact:

Re: Webservices

Post by Sven_Puth » 14. Sep 2016, 12:52

Ja richtig.
Speicher die neue Seite ab und füge unter "Formular" die genannten Felder hinzu.
Dann Speichern und die Aktion "Formular veröffentlichen" ausführen.

Dann hast du in der Globalen Konfiguration die neue Seite und kannst dort die Felder pflegen.
Tria-media - IT Solutions

malecube
Posts: 206
Joined: 19. May 2015, 13:40
Contact:

Re: Webservices

Post by malecube » 15. Sep 2016, 11:54

Hallo,

danke schon mal. Das werde ich probieren. Aber erst morgen oder uebermorgen - heute habe ich frei :-)

LG

Alexandra

hutterha
Posts: 2
Joined: 12. Sep 2016, 12:38
Contact:

Re: Webservices

Post by hutterha » 15. Sep 2016, 15:03

Hallo zusammen,

ich habe das auch versucht, bin aber nicht zum Erfolg gekommen. Hier eine kurze Bildergeschichte des Versuchs SupportedContexts auf den Wert „m42allinone“ zu setzen und in Java mittels request.setContext("m42allinone"); zu benutzen.
Ich bekomme jedoch den Fehler: The Context 'm42allinone' is not supported.

VG Harald
Attachments
07.png
java error output
(103.96 KiB) Downloaded 255 times
06.png
java code
(256.4 KiB) Downloaded 236 times
05.png
SuportedContexts
(126.83 KiB) Downloaded 235 times
04.png
(147.16 KiB) Downloaded 233 times
03.png
(112.87 KiB) Downloaded 231 times
02.png
CUSTM42GlobalConfigurationServices
(140.12 KiB) Downloaded 227 times
01.png
Konfigurationselement
(143.24 KiB) Downloaded 225 times

hutterha
Posts: 2
Joined: 12. Sep 2016, 12:38
Contact:

Re: Webservices

Post by hutterha » 16. Sep 2016, 14:51

Hallo zusammen,
Sven_Puth wrote:Du müsstest also dem Konfigurationselement "Global Configuration" eine neue Dialogseite hinzufügen und dort die Attributfelder hinzufügen, um diese in der Globalen Konfiguration zu editieren.
Das ist richtig. Es funktioniert. Danke!
01_GlobaleSystemeinstellungen.PNG
globaleSystemEinstellungen
(199.21 KiB) Downloaded 239 times
02_CUSTM42GlobalConfigurationServices.PNG
Unterstützte Kontexte
(67.02 KiB) Downloaded 255 times
03.javacode.PNG
javacode
(11.4 KiB) Downloaded 241 times
läuft fehlerfrei...

VG Harald

Post Reply

Return to “Administration”

Who is online

Users browsing this forum: No registered users and 3 guests