generic interface not working [solved]

Moderator: crythias

Locked
rvaldomir
Znuny expert
Posts: 155
Joined: 04 Aug 2014, 23:59
Znuny Version: 3.3.8
Real Name: Roberto A. Valdomir

generic interface not working [solved]

Post by rvaldomir »

Hi,

I'm trying to use the generic interface with the https://github.com/OTRS/otrs/blob/rel-3 ... uest.pl#L2 and tool from this site https://metacpan.org/pod/distribution/A ... eTicket.pl

with https://github.com/OTRS/otrs/blob/rel-3 ... uest.pl#L2 I got the following error:

Code: Select all

[otrs@fzdotrs01 bin]$ perl /opt/otrs/bin/otrs.SOAPRequest.pl
500 Internal Server Error at /opt/otrs/bin/otrs.SOAPRequest.pl line 77.
[otrs@fzdotrs01 bin]$
web server is configured
Untitled.png
You do not have the required permissions to view the files attached to this post.
Last edited by rvaldomir on 15 Jul 2015, 20:23, edited 1 time in total.
​Roberto A. Valdomir
Mobile: (+598) 93 868 147 | Skype: roberto.a.valdomir
@roberto.valdomir | re.vu/robertovaldomir

----------------------------------------------------------------------------------------
OTRS 3.3.8 | RHEL 6 x64 | Oracle 11g | Custom Development by OTRS365
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: generic interface not working

Post by reneeb »

what does the error log say?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
rvaldomir
Znuny expert
Posts: 155
Joined: 04 Aug 2014, 23:59
Znuny Version: 3.3.8
Real Name: Roberto A. Valdomir

Re: generic interface not working

Post by rvaldomir »

there is nothing in the logs, thats is very strange, also if debug is turned on.

what i checked is that those URLs from the otrs.SOAPRequest.pl does not work:

# this is the URL for the web service
# the format is
# <HTTP_TYPE>:://<OTRS_FQDN>/nph-genericinterface.pl/Webservice/<WEB_SERVICE_NAME>
# or
# <HTTP_TYPE>:://<OTRS_FQDN>/nph-genericinterface.pl/WebserviceID/<WEB_SERVICE_ID>
my $URL = 'http://localhost/otrs/nph-genericinterf ... tConnector';

# this name space should match the specified name space in the SOAP transport for the web service
my $NameSpace = 'http://www.otrs.org/TicketConnector/';
​Roberto A. Valdomir
Mobile: (+598) 93 868 147 | Skype: roberto.a.valdomir
@roberto.valdomir | re.vu/robertovaldomir

----------------------------------------------------------------------------------------
OTRS 3.3.8 | RHEL 6 x64 | Oracle 11g | Custom Development by OTRS365
rvaldomir
Znuny expert
Posts: 155
Joined: 04 Aug 2014, 23:59
Znuny Version: 3.3.8
Real Name: Roberto A. Valdomir

Re: generic interface not working

Post by rvaldomir »

Code: Select all

==> /tmp/otrs.log.2015-7 <==
[Wed Jul 15 10:19:59 2015][Error][Kernel::GenericInterface::Debugger::DebugLog][238] DebugLog error:  Summary: Error deserializing message:mismatched tag at line 10, column 2, byte 685 at /usr/lib64/perl5/XML/Parser.pm line 187.  Data   : No data provided.

==> error_log <==
ERROR: GenericInterfaceProvider-90 Perl: 5.10.1 OS: linux Time: Wed Jul 15 10:19:59 2015

 Message: DebugLog error:  Summary: Error deserializing message:mismatched tag at line 10, column 2, byte 685 at /usr/lib64/perl5/XML/Parser.pm line 187.  Data   : No data provided.

 RemoteAddress: 127.0.0.1
 RequestURI: /otrs/nph-genericinterface.pl/Webservice/GenericTicketConnector

 Traceback (7435):
   Module: Kernel::GenericInterface::Debugger::DebugLog (OTRS 3.3.8) Line: 238
   Module: Kernel::GenericInterface::Debugger::Error (OTRS 3.3.8) Line: 332
   Module: Kernel::GenericInterface::Transport::HTTP::SOAP::_Error (OTRS 3.3.8) Line: 715
   Module: Kernel::GenericInterface::Transport::HTTP::SOAP::ProviderProcessRequest (OTRS 3.3.8) Line: 205
   Module: Kernel::GenericInterface::Transport::ProviderProcessRequest (OTRS 3.3.8) Line: 139
   Module: Kernel::GenericInterface::Provider::Run (OTRS 3.3.8) Line: 196
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_nph_2dgenericinterface_2epl::handler (unknown version) Line: 38
   Module: (eval) (v1.99) Line: 204
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
   Module: ModPerl::Registry::handler (v1.99) Line: 31


==> /tmp/otrs.log.2015-7 <==
[Wed Jul 15 10:19:59 2015][Error][Kernel::GenericInterface::Debugger::DebugLog][238] DebugLog error:  Summary: Request could not be processed  Data   : Error deserializing message:mismatched tag at line 10, column 2, byte 685 at /usr/lib64/perl5/XML/Parser.pm line 187..

==> error_log <==
ERROR: GenericInterfaceProvider-90 Perl: 5.10.1 OS: linux Time: Wed Jul 15 10:19:59 2015

 Message: DebugLog error:  Summary: Request could not be processed  Data   : Error deserializing message:mismatched tag at line 10, column 2, byte 685 at /usr/lib64/perl5/XML/Parser.pm line 187..

 RemoteAddress: 127.0.0.1
 RequestURI: /otrs/nph-genericinterface.pl/Webservice/GenericTicketConnector

 Traceback (7435):
   Module: Kernel::GenericInterface::Debugger::DebugLog (OTRS 3.3.8) Line: 238
   Module: Kernel::GenericInterface::Debugger::Error (OTRS 3.3.8) Line: 332
   Module: Kernel::GenericInterface::Provider::Run (OTRS 3.3.8) Line: 200
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_nph_2dgenericinterface_2epl::handler (unknown version) Line: 38
   Module: (eval) (v1.99) Line: 204
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
   Module: ModPerl::Registry::handler (v1.99) Line: 31


==> /tmp/otrs.log.2015-7 <==
[Wed Jul 15 10:19:59 2015][Error][Kernel::GenericInterface::Debugger::DebugLog][238] DebugLog error:  Summary: Returning provider data to remote system (HTTP Code: 500)  Data   : Error deserializing message:mismatched tag at line 10, column 2, byte 685 at /usr/lib64/perl5/XML/Parser.pm line 187..

==> error_log <==
ERROR: GenericInterfaceProvider-90 Perl: 5.10.1 OS: linux Time: Wed Jul 15 10:19:59 2015

 Message: DebugLog error:  Summary: Returning provider data to remote system (HTTP Code: 500)  Data   : Error deserializing message:mismatched tag at line 10, column 2, byte 685 at /usr/lib64/perl5/XML/Parser.pm line 187..

 RemoteAddress: 127.0.0.1
 RequestURI: /otrs/nph-genericinterface.pl/Webservice/GenericTicketConnector

 Traceback (7435):
   Module: Kernel::GenericInterface::Debugger::DebugLog (OTRS 3.3.8) Line: 238
   Module: Kernel::GenericInterface::Transport::HTTP::SOAP::_Output (OTRS 3.3.8) Line: 800
   Module: Kernel::GenericInterface::Transport::HTTP::SOAP::ProviderGenerateResponse (OTRS 3.3.8) Line: 278
   Module: Kernel::GenericInterface::Transport::ProviderGenerateResponse (OTRS 3.3.8) Line: 186
   Module: Kernel::GenericInterface::Provider::_GenerateErrorResponse (OTRS 3.3.8) Line: 378
   Module: Kernel::GenericInterface::Provider::Run (OTRS 3.3.8) Line: 205
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_nph_2dgenericinterface_2epl::handler (unknown version) Line: 38
   Module: (eval) (v1.99) Line: 204
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
   Module: ModPerl::Registry::handler (v1.99) Line: 31


==> access_log <==
127.0.0.1 - - [15/Jul/2015:10:19:59 -0300] "POST /otrs/nph-genericinterface.pl/Webservice/GenericTicketConnector HTTP/1.1" 200 238 "-" "SOAP::Lite/Perl/1.14"
​Roberto A. Valdomir
Mobile: (+598) 93 868 147 | Skype: roberto.a.valdomir
@roberto.valdomir | re.vu/robertovaldomir

----------------------------------------------------------------------------------------
OTRS 3.3.8 | RHEL 6 x64 | Oracle 11g | Custom Development by OTRS365
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: generic interface not working

Post by crythias »

rvaldomir wrote:mismatched tag
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rvaldomir
Znuny expert
Posts: 155
Joined: 04 Aug 2014, 23:59
Znuny Version: 3.3.8
Real Name: Roberto A. Valdomir

Re: generic interface not working

Post by rvaldomir »

Ok how to solve it?
​Roberto A. Valdomir
Mobile: (+598) 93 868 147 | Skype: roberto.a.valdomir
@roberto.valdomir | re.vu/robertovaldomir

----------------------------------------------------------------------------------------
OTRS 3.3.8 | RHEL 6 x64 | Oracle 11g | Custom Development by OTRS365
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: generic interface not working

Post by crythias »

one side or the other is providing invalid xml.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rvaldomir
Znuny expert
Posts: 155
Joined: 04 Aug 2014, 23:59
Znuny Version: 3.3.8
Real Name: Roberto A. Valdomir

Re: generic interface not working

Post by rvaldomir »

I found the error:

<Title>some title/Title>

a < is missing on xml tag clossing.

thanks!!1
​Roberto A. Valdomir
Mobile: (+598) 93 868 147 | Skype: roberto.a.valdomir
@roberto.valdomir | re.vu/robertovaldomir

----------------------------------------------------------------------------------------
OTRS 3.3.8 | RHEL 6 x64 | Oracle 11g | Custom Development by OTRS365
Locked