[SOLVED] can't contact web service I just made

English! place to talk about development, programming and coding
Post Reply
ATD39401
Znuny newbie
Posts: 21
Joined: 28 Jun 2024, 14:38
Znuny Version: 6.0.44
Real Name: Amber Denton
Company: UTK College of Veterinary Medicine

[SOLVED] can't contact web service I just made

Post by ATD39401 »

Hello all,

I'm new to developing with OTRS and wanted some guidance regarding a web service I just made. When I try to get data from it or even ping the webservice URL per OTRS's documentation, I get no signs of life. I get no data, and any attempts to contact it say the host can't be found. Is there a setting I'm missing in the Admin page of OTRS that enables and disables all web services? This is what I'm using below per OTRS's documentaion.

https://[organization_name]/otrs/nph-genericinterface.pl/Webservice/[my_webservice]
Last edited by ATD39401 on 02 Aug 2024, 17:28, edited 1 time in total.
root
Administrator
Posts: 4232
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: can't contact web service I just made

Post by root »

Hi,

It would help to have the web service configuration exported and here uploaded.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
ATD39401
Znuny newbie
Posts: 21
Joined: 28 Jun 2024, 14:38
Znuny Version: 6.0.44
Real Name: Amber Denton
Company: UTK College of Veterinary Medicine

Re: can't contact web service I just made

Post by ATD39401 »

Sorry about that! The web service config is posted here.
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 4232
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: can't contact web service I just made

Post by root »

Hi,

Let's start with the route for session. Why do you have there a complete URL? The route in operation is the path after https://[organization_name]/otrs/nph-genericinterface.pl/Webservice/[my_webservice]

I guess your Znuny 6.0.44 has no invokers installed; the requester settings are not used.

Retrieving a ticket with that web service can be done with this command

curl -v -H 'Content-type: application/json' 'https://[organization_name]/otrs/nph-genericinterface.pl/Webservice/[my_webservice]/Ticket/TICKETID?UserLogin=xx;Password=yyy'

I recommend updating to Znuny LTS 6.5 to use the credentials in the header possibly, adjust the web service to use POST, or switch to sessions for authentication (in this order).

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply