this is my first post in this forum, so hello everyone!
I'm developing a java software that makes use of the SOAP API that comes with OTRS.
The software is compatible with OTRS 3.x up to 5.x.
Now I wanted to make it compatible with 6.x, but it seems that the API has changed a lot, or at least something has changed so the responses I get are always empty / nil.
Here is an example SOAP XML Request Message to get all Queues in Otrs, posted to http://localhost/otrs/rpc.pl :
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:env="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-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header />
<SOAP-ENV:Body>
<Dispatch xmlns="/Core">
<Username xsi:type="xsd:string">some_user</Username>
<Password xsi:type="xsd:string">some_pass</Password>
<Object xsi:type="xsd:string">QueueObject</Object>
<Method xsi:type="xsd:string">QueueList</Method>
</Dispatch>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The answer looked typically like this:
Code: Select all
<?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>
<DispatchResponse xmlns="/Core">
<s-gensym3 xsi:type="xsd:int">3</s-gensym3>
<s-gensym5 xsi:type="xsd:string">Junk</s-gensym5>
<s-gensym7 xsi:type="xsd:int">2</s-gensym7>
<s-gensym9 xsi:type="xsd:string">Raw</s-gensym9>
<s-gensym11 xsi:type="xsd:int">1</s-gensym11>
<s-gensym13 xsi:type="xsd:string">Postmaster</s-gensym13>
<s-gensym15 xsi:type="xsd:int">4</s-gensym15>
<s-gensym17 xsi:type="xsd:string">Misc</s-gensym17>
</DispatchResponse>
</soap:Body>
</soap:Envelope>
Code: Select all
<?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>
<DispatchResponse xmlns="/Core" xsi:nil="true" />
</soap:Body>
</soap:Envelope>
I know this is a very specific issue, but maybe someone of you knows where to point me.
Thank you for your time:)