OTRS 3.1 Generic Interface webserice error Length Required

Moderator: crythias

Locked
sebastian415722
Znuny newbie
Posts: 1
Joined: 23 Jul 2012, 15:26
Znuny Version: 3.1.7

OTRS 3.1 Generic Interface webserice error Length Required

Post by sebastian415722 »

Hello,

I've a problem with the new Generic Interface in OTRS 3.1.
I want to configure a webservice to create new tickets with soap.

I've uploaded the GenericTicketConnector.yml from the manual example to add the approved configuration for creating and updating tickets.

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: 0
Description: Ticket Connector Sample
FrameworkVersion: 3.1.x CVS
Provider:
  Operation:
    SessionCreate:
      Description: Creates a Session
      MappingInbound: {}
      MappingOutbound: {}
      Type: Session::SessionCreate
    TicketCreate:
      Description: Creates a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketCreate
    TicketUpdate:
      Description: Updates a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketUpdate
    TicketGet:
      Description: Retrieve Ticket data
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketGet
    TicketSearch:
      Description: Search for Tickets
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketSearch
  Transport:
    Config:
      MaxLength: 100000000
      NameSpace: http://www.otrs.org/TicketConnector/
    Type: HTTP::SOAP
RemoteSystem: ''
Requester:
  Transport:
    Type: ''
When I want to call the webservice in browser (http://myserver/otrs/nph-genericinterfa ... cketCreate or some other action), I got the following message:
Length Required

I've found similiar problems in this forum, but the only answer is to configure the length in the Transport configuration in OTRS.
But in the network transport settings (HTTP::SOAP) from the created webservice, the namespace AND maximum message length ist defined.

The otrs error log shows the following information:
[Error][Kernel::GenericInterface::Debugger::DebugLog][241] DebugLog error: Summary: Returning provider data to remote system (HTTP Code: 411) Data : Length Required.

I don't know what to do to solve this problem.
Thanks!
vulk
Znuny newbie
Posts: 17
Joined: 13 Jun 2012, 23:24
Znuny Version: 3.1.5
Real Name: Andres
Company: Tronex

Re: OTRS 3.1 Generic Interface webserice error Length Requir

Post by vulk »

I have the same problem, I copy the GenericTicketConnector.yml from the following URL:

http://code.google.com/p/otrs-git/sourc ... 54b89c5a4c

I ran the perl SOAP requester from:

http://doc.otrs.org/3.1/en/html/generic ... l#id426022

It works fine, I can change the request and works fine too.

I also can connect from SOA Client for Mozilla Firefox with the following xml:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="http://www.otrs.org/TicketConnector/actions">
<SOAP-ENV:Header />
<SOAP-ENV:Body>
<TicketSearch>
<UserLogin>user</UserLogin>
<Password>pass</Password>
<TicketID>36</TicketID>
</TicketSearch>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

But I can't connect from SOAP UI in eclipse, and I when I try to open http://myotrssite/otrs/nph-genericinter ... tConnector in a browser or include it in my .NET project, I always get the same result:

error GenericInterfaceProvider-10 DebugLog error: Summary: Returning provider data to remote system (HTTP Code: 411) Data : Length Required.

I think that this is a result of a poor webservice's config, but I really tested all I can but without success.

Please help.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS 3.1 Generic Interface webserice error Length Requir

Post by jojo »

as the provides script works it seems to be a eclipse issue.

Please also note that you can not use a soap based webservice via browser
"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
vulk
Znuny newbie
Posts: 17
Joined: 13 Jun 2012, 23:24
Znuny Version: 3.1.5
Real Name: Andres
Company: Tronex

Re: OTRS 3.1 Generic Interface webserice error Length Requir

Post by vulk »

HHMM, I understand.... but the problem here is, when I try to add a webservice in visual studio, there is a browser that tries to connect to the URL and I get the same error.

Then I suppose that I have to connect to the webservice writing all code by hand??

Thanks for your quick answer.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS 3.1 Generic Interface webserice error Length Requir

Post by jojo »

"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
vulk
Znuny newbie
Posts: 17
Joined: 13 Jun 2012, 23:24
Znuny Version: 3.1.5
Real Name: Andres
Company: Tronex

Re: OTRS 3.1 Generic Interface webserice error Length Requir

Post by vulk »

Thanks a lot, I was really lost with this theme, I was seen that file but I wasn't understood what was it for....

I imported that in the SOAP UI in eclipse and I am using webservice operators right now, I will do the same in Visual Studio, but I suppose it works in the same way.

Your help was very usefull.

(sorry for my poor english)
Locked