Hi Kris,

I created a perl-based client for the Generic Interface: https://metacpan.org/pod/distribution/App-OTRS-CreateTicket/bin/otrs.CreateTicket.pl

your datastructure is not correct. The server complains about a missing OperationType, what is 'TicketCreate' in my XML structure below.

I found this to be the XML that is generated by my client, which *works*:
http://requestb.in/1icbkha1?inspect#rmn6uh

The request is this:

<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <soap:Body>
    <TicketCreate xmlns="http://www.otrs.org/TicketConnector/">
      <UserLogin xsi:type="xsd:string">mylogin</UserLogin>
      <Password xsi:type="xsd:string">mypassword</Password>
      <Ticket>
        <Title xsi:type="xsd:string">No title</Title>
        <Queue xsi:type="xsd:string">Postmaster</Queue>
        <Priority xsi:type="xsd:string">3 normal</Priority>
        <State xsi:type="xsd:string">new</State>
        <Type xsi:type="xsd:string">default</Type>
      </Ticket>
      <Article>
        <Subject xsi:type="xsd:string">No title</Subject>
        <Body xsi:type="xsd:string">foo</Body>
        <ContentType xsi:type="xsd:string">text/plain; charset=utf8</ContentType>
        <SenderType xsi:type="xsd:string">customer</SenderType>
        <TimeUnit xsi:type="xsd:int">0</TimeUnit>
      </Article>
    </TicketCreate>
  </soap:Body>
</soap:Envelope>


I hope this helps!

--
Mike


On Tue, Jul 15, 2014 at 6:31 PM, Kristofer Pettijohn <kristofer@cybernetik.net> wrote:
I am attempting to use Python and SOAPpy as a requestor to the Generic Interface. However, I am having issues.

This is the complete Python code for my test: http://pastebin.com/jD7jD5yv
This is the SOAP request that it is sending out: http://pastebin.com/gUKc8np4

OTRS system log is reporting that it "Got no OperationType!"



I am stuck and can't seem to find what I am missing.  Can someone point me in the right direction?

Thanks,

Kris



---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs