Webservice Tickets sind gelockt?

Allgemein Fragen, deutsche News, Ankündigungen & Events zum OTRS
Post Reply
miramar
Znuny newbie
Posts: 33
Joined: 07 Oct 2012, 21:54
Znuny Version: 3.3.8
Real Name: Bernd Renzing

Webservice Tickets sind gelockt?

Post by miramar »

Hallo zusammen!

Tickets die via Webservice erstellt werden sind immer gelockt. Ist das bei euch auch so, oder ist das ein Problem unserer Installation?

Grüße Bernd.
OTRS 3.2.5 ITSM, FAQ, MyServices, RegexCheck4Cmdb and support contract available...
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Webservice Tickets sind gelockt?

Post by jojo »

das ist wohl das Problem des externen Webservices....

Bei mir klappt es ohne lock
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
miramar
Znuny newbie
Posts: 33
Joined: 07 Oct 2012, 21:54
Znuny Version: 3.3.8
Real Name: Bernd Renzing

Re: Webservice Tickets sind gelockt?

Post by miramar »

Huhu,

naja wir nutzen eure Config:

Code: Select all

# read XMLData from file
my $XMLData;
my $XMLFile = $ARGV[0];
open(my $fh, '<:encoding(UTF-8)', $XMLFile) or die "cannot open $XMLFile: $!";
{
    local $/;
    $XMLData = <$fh>;
}
close($fh);

# ---

# create a SOAP::Lite data structure from the provided XML data structure
my $SOAPData = SOAP::Data
    ->type( 'xml' => $XMLData );

my $SOAPObject = SOAP::Lite
    ->uri($NameSpace)
    ->proxy($URL)
    ->$Operation($SOAPData);

# check for a fault in the soap code
if ( $SOAPObject->fault() ) {
    print $SOAPObject->faultcode(), " ", $SOAPObject->faultstring(), "\n";
}

# otherwise print the results
else {

    # get the XML response part from the SOAP message
    my $XMLResponse = $SOAPObject->context()->transport()->proxy()->http_response()->content();

    # deserialize response (convert it into a perl structure)
    my $Deserialized = eval {
        SOAP::Deserializer->deserialize($XMLResponse);
    };

    # remove all the headers and other not needed parts of the SOAP message
    my $Body = $Deserialized->body();

    # just output relevant data and no the operation name key (like TicketCreateResponse)
    for my $ResponseKey ( sort keys %{$Body} ) {
        print Dumper( $Body->{$ResponseKey} );    ## no critic
    }
}
und die folgende WebService Config:

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: '0'
Description: Ticket Connector Sample
FrameworkVersion: 3.3.8
Provider:
  Operation:
    SessionCreate:
      Description: Creates a Session
      MappingInbound: {}
      MappingOutbound: {}
      Type: Session::SessionCreate
    TicketCreate:
      Description: Creates a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketCreate
    TicketGet:
      Description: Retrieve Ticket data
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketGet
    TicketSearch:
      Description: Search for Tickets
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketSearch
    TicketUpdate:
      Description: Updates a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketUpdate
  Transport:
    Config:
      MaxLength: '100000000'
      NameSpace: http://www.otrs.org/TicketConnector/
    Type: HTTP::SOAP
RemoteSystem: ''
Requester:
  Transport:
    Type: ''
und hier der zugehörige XML Content

Code: Select all

my $XMLData = '
<UserLogin>user</UserLogin>
<Password>veryimportant</Password>
<Ticket>
    <Owner>root@localhost</Owner>
    <Title>Test</Title>
    <Type>Service-Request</Type>
    <CustomerUser>user</CustomerUser>
    <Queue>Externer Support::Rightsmanagement</Queue>
    <State>open</State>
    <Priority>Service-Anfrage</Priority>
</Ticket>
<Article>
    <Subject>Test</Subject>
    <Body>Bitte die folgenden Zuweisung vornehmen </Body>
    <ContentType>text/plain; charset=utf8</ContentType>
</Article>
';
Dachte nur das Phenomen hätte noch jemand ... ok, dass muss ich wohl nen support ticker eröffnen. :D

Gruss, Bernd.
OTRS 3.2.5 ITSM, FAQ, MyServices, RegexCheck4Cmdb and support contract available...
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Webservice Tickets sind gelockt?

Post by jojo »

und wenn Ihr die Owner Zeile weglasst?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
miramar
Znuny newbie
Posts: 33
Joined: 07 Oct 2012, 21:54
Znuny Version: 3.3.8
Real Name: Bernd Renzing

Re: Webservice Tickets sind gelockt?

Post by miramar »

Dann ist alles gut grmpf ....

Bug oder Feature?
OTRS 3.2.5 ITSM, FAQ, MyServices, RegexCheck4Cmdb and support contract available...
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Webservice Tickets sind gelockt?

Post by jojo »

im Prinzip das gleiche Verhalten wie in der Oberfläche. Wenn Du z.B. beim Telefonticket einen Owner zuweist wird es auch auf diesen gesperrt
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply