ticketCreate: set ServiceID/Service field via web service

Moderator: crythias

Locked
wolf97084
Znuny newbie
Posts: 26
Joined: 10 Feb 2015, 22:37
Znuny Version: 4.0.1

ticketCreate: set ServiceID/Service field via web service

Post by wolf97084 »

I am trying to create a ticket using webservice via SOAP.

When I put in the ServiceID or Service field ( <ServiceID>3</ServiceID> or <Service>Some service</Service> )
the system would give me this error,

Code: Select all

$VAR1 = {
          'Error' => {
                     'ErrorCode' => 'TicketCreate.InvalidParameter',
                     'ErrorMessage' => 'TicketCreate: Ticket->ServiceID or Ticket->Service parameter is invalid!'
                   }
        };

I do have several services setup and some even have sub services. I tried to put the SOAP user as a customer and associate itself with all service and sub service, but the system came back with the same error.

Is there anywhere I need to set up in the OTRS Web UI? Or there's a special way to put in Service XML tag?
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: ticketCreate: set ServiceID/Service field via web service

Post by EXG133 »

We successfully use <Service>Example</Service>

Is your user able to fill in the service when creating a ticket through the agent interface?
wolf97084
Znuny newbie
Posts: 26
Joined: 10 Feb 2015, 22:37
Znuny Version: 4.0.1

Re: ticketCreate: set ServiceID/Service field via web service

Post by wolf97084 »

Yes, customer can create ticket with selected Service (via drop down menu.)

But when I set <Service> in SOAP, it will give me error. Is there any where I need to set in the web service so it will take <Service>? Do I need to set the data mapping to "Simple" instead of nothing? What is the mapping do? What does it affect?

Thank you.
Locked