3

I need to connect to the OTRS over its SOAP web service from another java application. In the web services configuration in system administration I have configured OTRS as provider, added the operations Ticket::TicketCreate and Ticket::TicketUpdate.

My problem is I don't know how to access this web service. Where is the endpoint?

OTRS version used is 3.3.9.

MirecXP
  • 443
  • 7
  • 18

2 Answers2

2

I posted my solution (in Java) here

Endpoint is http://localhost/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorSOAP

Community
  • 1
  • 1
wolf97084
  • 270
  • 4
  • 22
  • Can anyone tell me how to update otrs tickets in php via soap api. – Sujan Shrestha Aug 15 '16 at 09:51
  • 1
    @SujanShrestha You need to a ticket search first to get the ticket you want (unless you have already know the ticket #), then use different ticketObject operation to update your tickets. http://otrs.github.io/doc/api/otrs/stable/Perl/Kernel/System/Ticket.pm.html Which version of OTRS are you using? – wolf97084 Aug 17 '16 at 13:52
  • @wolf97084 i am using 3.1.12.. i tried using ticket object operation but its not updating it. – Sujan Shrestha Aug 19 '16 at 05:13
  • What error did you see? You should open another thread for your problem and upload your code. I am betting you are missing some required fields. – wolf97084 Aug 23 '16 at 15:24
  • Hi, I added `http://www.otrs.mydomain.com/otrs/TicketConnector/` as NameSpace inside HTTP:SOAP configuration. URL `http://www.otrs.mydomain.com/otrs/index.pl/` is homepage of my OTRS page. But with this namespace configuration, I am getting HTTP 404 error when calling from remote service. Any suggestions ? – Shyamkkhadka Dec 28 '17 at 15:07
  • Hi, I added [http://www.otrs.mydomainname.com/otrs/TicketConnector/](http://www.otrs.mydomainname.com/otrs/TicketConnector/) ` as NameSpace inside HTTP:SOAP configuration. URL [http://www.otrs.mydomainname.com/otrs/index.pl/](http://www.otrs.mydomainname.com/otrs/index.pl/) is homepage of my OTRS page. But with this namespace configuration, I am getting HTTP 404 error when calling from remote service. Any suggestions ? – Shyamkkhadka Dec 28 '17 at 15:12
0

If interested, the otrs SOAP endpoint for 5.0 is almost the same:

http://SERVERADDRESS/otrs/nph-genericinterface.pl/Webservice/WEBSERVICENAME/OPERATION

luca76
  • 813
  • 1
  • 10
  • 20