webservice visual studio problem

Moderator: crythias

Locked
jaroslawgalina
Znuny newbie
Posts: 10
Joined: 27 Nov 2012, 15:58
Znuny Version: 3.2.Beta4
Real Name: Jarosław Galina
Company: Oxycom S.A.

webservice visual studio problem

Post by jaroslawgalina »

I try to include my web service to my visual studio project and all im geting from

Code: Select all

http://ip_address/otrs/nph-genericinterface.pl/Webservice/oxysupport_webservice
is

Length Required

There was an error downloading 'http://ip_address/otrs/nph-genericinterface.pl/Webservice/oxysupport_webservice'.
The request failed with HTTP status 411: Length Required.
There was an error downloading 'http://ip_address/otrs/nph-genericinterface.pl/Webservice/oxysupport_webservice/$metadata'.
T

Response is the same on soapUI

Help is required

Singed desperate programer

Yaml Config

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: 0
Description: Webservice platform Oxycom
Provider:
  Operation:
    SessionCreate:
      Description: Tworzenie sesji
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      MappingOutbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      Type: Session::SessionCreate
    TicketCreate:
      Description: Tworzy nowe zgłoszenie
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      MappingOutbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      Type: Ticket::TicketCreate
    TicketGet:
      Description: Pobiera zgłoszenie
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      MappingOutbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      Type: Ticket::TicketGet
    TicketSearch:
      Description: Szuka zgłoszenia
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      MappingOutbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      Type: Ticket::TicketSearch
    TicketUpdate:
      Description: Aktualizuje zgłoszenie
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      MappingOutbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      Type: Ticket::TicketUpdate
  Transport:
    Config:
      Authentication: {}
      MaxLength: 65000
      NameSpace: OxySupport
    Type: HTTP::SOAP
RemoteSystem: ASP .NET
Requester:
  Transport:
    Config:
      Authentication: {}
    Type: ''
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: webservice visual studio problem

Post by jojo »

your visual studio seems to to send a correct soap request
"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
jaroslawgalina
Znuny newbie
Posts: 10
Joined: 27 Nov 2012, 15:58
Znuny Version: 3.2.Beta4
Real Name: Jarosław Galina
Company: Oxycom S.A.

Re: webservice visual studio problem

Post by jaroslawgalina »

It sends correctly but i cant get a response so i stuck

my 3.2 beta4 debian apache 2 is killing me and i don't know what to do bosses are bossy they want ansers on last mondey

Help!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: webservice visual studio problem

Post by jojo »

the error message indicates that no lenght was sent. Did you try your webservice directly? Did you try with the original yaml file from the OTRS docs?

It seems that you require some professional OTRS support
"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
jaroslawgalina
Znuny newbie
Posts: 10
Joined: 27 Nov 2012, 15:58
Znuny Version: 3.2.Beta4
Real Name: Jarosław Galina
Company: Oxycom S.A.

Re: webservice visual studio problem

Post by jaroslawgalina »

Some new information

service Address

Code: Select all

http://IP_ADDRESS/otrs/nph-genericinterface.pl/Webservice/oxysupport_webservice
Yaml configuration

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: 0
Description: Webservice platform Oxycom
Provider:
  Operation:
    SessionCreate:
      Description: Tworzenie sesji
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      MappingOutbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      Type: Session::SessionCreate
    TicketCreate:
      Description: Tworzy nowe zgłoszenie
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      MappingOutbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      Type: Ticket::TicketCreate
    TicketGet:
      Description: Pobiera zgłoszenie
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      MappingOutbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      Type: Ticket::TicketGet
    TicketSearch:
      Description: Szuka zgłoszenia
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      MappingOutbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      Type: Ticket::TicketSearch
    TicketUpdate:
      Description: Aktualizuje zgłoszenie
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      MappingOutbound:
        Config:
          KeyMapDefault:
            MapTo: ''
            MapType: Keep
          ValueMapDefault:
            MapTo: ''
            MapType: Keep
        Type: Simple
      Type: Ticket::TicketUpdate
  Transport:
    Config:
      Authentication: {}
      MaxLength: 1000000000
      NameSpace: OxySupport
    Type: HTTP::SOAP
RemoteSystem: ASP .NET
Requester:
  Transport:
    Config:
      Authentication: {}
      Encoding: ''
      Endpoint: endpoint
      NameSpace: Oxysupport
      SOAPAction: Yes
      SOAPActionSeparator: /
    Type: HTTP::SOAP
Visual studio adding try response

Code: Select all

There was an error downloading 'http://IP_ADDRESS/otrs/nph-genericinterface.pl/Webservice/oxysupport_webservice'.
The request failed with HTTP status 411: Length Required.
There was an error downloading 'http://IP_ADDRESS/otrs/nph-genericinterface.pl/Webservice/oxysupport_webservice/$metadata'.T
Debbuger response

Code: Select all

Communication sequence started (2012-11-28 09:27:51, debug)

$VAR1 = {
  'DOCUMENT_ROOT' => '/var/www',
  'GATEWAY_INTERFACE' => 'CGI/1.1',
  'HTTP_HOST' => 'IP_ADDRESS',
  'HTTP_USER_AGENT' => 'Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.296)',
  'MOD_PERL' => 'mod_perl/2.0.4',
  'MOD_PERL_API_VERSION' => '2',
  'PATH' => '/usr/local/bin:/usr/bin:/bin',
  'PATH_INFO' => '/Webservice/oxysupport_webservice/_vti_bin/ListData.svc/$metadata',
  'PATH_TRANSLATED' => '/var/www/Webservice/oxysupport_webservice/_vti_bin/ListData.svc/$metadata',
  'QUERY_STRING' => '',
  'REMOTE_ADDR' => IP_ADDRESS_LOCAL',
  'REMOTE_PORT' => '51347',
  'REQUEST_METHOD' => 'GET',
  'REQUEST_URI' => '/otrs/nph-genericinterface.pl/Webservice/oxysupport_webservice/_vti_bin/ListData.svc/$metadata',
  'SCRIPT_FILENAME' => '/opt/otrs/bin/cgi-bin/nph-genericinterface.pl',
  'SCRIPT_NAME' => '/otrs/nph-genericinterface.pl',
  'SERVER_ADDR' => 'IP_ADDRESS',
  'SERVER_ADMIN' => 'webmaster@localhost',
  'SERVER_NAME' => 'IP_ADDRESS',
  'SERVER_PORT' => '80',
  'SERVER_PROTOCOL' => 'HTTP/1.1',
  'SERVER_SIGNATURE' => '<address>Apache/2.2.16 (Debian) Server at IP_ADDRESS Port 80</address>
',
  'SERVER_SOFTWARE' => 'Apache/2.2.16 (Debian)'
};

Length Required (2012-11-28 09:27:51, error)

No data provided

Request could not be processed (2012-11-28 09:27:51, error)

Length Required

Returning provider data to remote system (HTTP Code: 411) (2012-11-28 09:27:51, error)

Length Required

Oparte na OTRS 3.2.x CVS
Need assistance plz Help!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: webservice visual studio problem

Post by jojo »

your visual stiúdio does not talk SOAP. It tries to fetch something instead sending data!
"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
jaroslawgalina
Znuny newbie
Posts: 10
Joined: 27 Nov 2012, 15:58
Znuny Version: 3.2.Beta4
Real Name: Jarosław Galina
Company: Oxycom S.A.

Re: webservice visual studio problem

Post by jaroslawgalina »

It trying to get webservice that is configered in otrs.

How can i get wsdl in my visual studio difretly??
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: webservice visual studio problem

Post by jojo »

please have a look in these files http://source.otrs.org/viewvc.cgi/otrs/ ... bservices/ and read the developer docs
"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
jaroslawgalina
Znuny newbie
Posts: 10
Joined: 27 Nov 2012, 15:58
Znuny Version: 3.2.Beta4
Real Name: Jarosław Galina
Company: Oxycom S.A.

Re: webservice visual studio problem

Post by jaroslawgalina »

Revision log is not helpfull it still don't tell me how to implement my configered otrs web service in my visual studio
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: webservice visual studio problem

Post by jojo »

Look at the files, not the log
"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
jaroslawgalina
Znuny newbie
Posts: 10
Joined: 27 Nov 2012, 15:58
Znuny Version: 3.2.Beta4
Real Name: Jarosław Galina
Company: Oxycom S.A.

Re: webservice visual studio problem

Post by jaroslawgalina »

so i can se changes they made in yaml cofiguration, wsdl over time compare that what they have to my yaml config but still it have no freaking idea how to export my otrs web service and import it in my visual studio project so i don't get an 411 error length required.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: webservice visual studio problem

Post by jojo »

use the provided wsdl file
"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
jaroslawgalina
Znuny newbie
Posts: 10
Joined: 27 Nov 2012, 15:58
Znuny Version: 3.2.Beta4
Real Name: Jarosław Galina
Company: Oxycom S.A.

Re: webservice visual studio problem

Post by jaroslawgalina »

all good but the yml file is bad if i can't config the yml then wsdl is wortless as well
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: webservice visual studio problem

Post by jojo »

the provided yaml file works for me
"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
jaroslawgalina
Znuny newbie
Posts: 10
Joined: 27 Nov 2012, 15:58
Znuny Version: 3.2.Beta4
Real Name: Jarosław Galina
Company: Oxycom S.A.

Re: webservice visual studio problem

Post by jaroslawgalina »

i finaly did make it work

And after loading wsdl into soapui before integrating it to my project starting testing methods out flat got my first error on ticket create

Code: Select all

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <TicketCreate>
         <!--You have a CHOICE of the next 3 items at this level-->
         <!--Optional:-->
        <SessionID>10bffaee9755b378b628d38440ab975939</SessionID>
         <!--Optional:-->
         <Password>password</Password>
         <Ticket>
            <Title>test</Title>
            <!--You have a CHOICE of the next 2 items at this level-->
           <!--Optional:-->
            <Queue>Junk</Queue>
            <!--You have a CHOICE of the next 2 items at this level-->
            <!--Optional:-->
            <Type>deafult</Type>
            <!--You have a CHOICE of the next 2 items at this level-->
            <!--Optional:-->
            <Service>Test</Service>
            <!--You have a CHOICE of the next 2 items at this level-->
            <!--Optional:-->
            <SLA>Test</SLA>
            <!--You have a CHOICE of the next 2 items at this level-->
            <!--Optional:-->
           <State>new</State>
            <!--You have a CHOICE of the next 2 items at this level-->
            <!--Optional:-->
            <Priority>1 very low</Priority>
            <!--You have a CHOICE of the next 2 items at this level-->
            <!--Optional:-->
           <Owner>jaroslaw.galina</Owner>
            <!--You have a CHOICE of the next 2 items at this level-->
            <!--Optional:-->
           <Responsible>root@localhost</Responsible>
            <CustomerUser>maciej.galina</CustomerUser>
        </Ticket>
         <Article>
            <!--You have a CHOICE of the next 2 items at this level-->
           <!--Optional:-->
            <ArticleType>agent note internal</ArticleType>
            <!--You have a CHOICE of the next 2 items at this level-->
            <!--Optional:-->
           <SenderType>e-mail</SenderType>
            <!--Optional:-->
            <From>e-mail address</From>
            <Subject>Test</Subject>
            <Body>Test</Body>
            <!--You have a CHOICE of the next 2 items at this level-->
            <!--Optional:-->
            <ContentType>text/plain</ContentType>
            <MimeType>text/plain</MimeType>
         </Article>
     </TicketCreate>
   </soapenv:Body>
</soapenv:Envelope>
line -1: Missing message part with name:type [TicketCreate:{oxysupport}OTRS_TicketCreate]

by the way i changed in wsdl and yml only namespace and service name
jaroslawgalina
Znuny newbie
Posts: 10
Joined: 27 Nov 2012, 15:58
Znuny Version: 3.2.Beta4
Real Name: Jarosław Galina
Company: Oxycom S.A.

Re: webservice visual studio problem

Post by jaroslawgalina »

ok got around that problem

But here is a question can i remotly create users on otrs so they can track created for them tickets

becose i dont want to show them the otrs costumer login page us my system so they dont have to login to another

??
jaroslawgalina
Znuny newbie
Posts: 10
Joined: 27 Nov 2012, 15:58
Znuny Version: 3.2.Beta4
Real Name: Jarosław Galina
Company: Oxycom S.A.

Re: webservice visual studio problem

Post by jaroslawgalina »

Ok this is not worth my time or health

It dosen't work in soapui it does but when i use it to generate classes in my visual studio .net project it has namespace problems or it can't find OTRS_TicketCreate definition so i quit

I'm moving on RT Request Tracker see if it is more integration frendliy

weak work down the drain this otrs webservice idea sux and you can quote me on that
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: webservice visual studio problem

Post by jojo »

bye bye
"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
Locked