I am getting a "java.io.IOException: Server returned HTTP response code: 500 for URL" error when calling "AddContentBlock" method via the webservice into my java code.
When testing the webservice call with the same arguments on SoapUI, I get this error:
ExceptionMessage: Content with the same target id already exist
I am actually using targetID = 0, as shwon into examples.
My complete WS call request is :
Code: Select all
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://agnitas.org/ws/schemas">
<soapenv:Header/>
<soapenv:Body>
<sch:AddContentBlockRequest>
<!--You may enter the following 5 items in any order-->
<sch:mailingID>140</sch:mailingID>
<sch:blockName>application</sch:blockName>
<sch:targetID>0</sch:targetID>
<sch:content>blablsdablda</sch:content>
<sch:order>3</sch:order>
</sch:AddContentBlockRequest>
</soapenv:Body>
</soapenv:Envelope>
If I set targetID = 1, I get the same error.
If I set targetID = 2 or higher values, then I get : ExceptionMessage: Unknown target id (2).
Thx for your assistance.