My request is "accepted", which means, that the SMGR web service is sending a header as reply. Nothing more ("Content: 0").
I think that the URL is not in the right format. The Java Sample is reading the XML file and reads every line into one with "\n" as seperator.
Furthermore some special characters are replaced by HTML code. I do the same in my VB code.
This is the content of the XML file:
<?xml version="1.0" encoding="UTF-8"?>
<tns:management-webservice-criteria xmlns:tns="http://www.avaya.com/mgmt-web-criteria/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.avaya.com/mgmt-web-criteria/mgmt-web-criteria.xsd">
<criterialist>
<criteria>
<propertyname>startindex</propertyname>
<operator>equals</operator>
<value>0</value>
<restriction>and</restriction>
</criteria>
<criteria>
<propertyname>offsetindex</propertyname>
<operator>equals</operator>
<value>10</value>
<restriction>and</restriction>
</criteria>
</criterialist>
</tns:management-webservice-criteria>
This is the converted Data:
<?xml version="1.0" encoding="UTF-8"?>\n<tns:management-webservice-criteria xmlns:tns="http://www.avaya.com/mgmt-web-criteria/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.avaya.com/mgmt-web-criteria/mgmt-web-criteria.xsd">\n<criterialist>\n<criteria>\n<propertyname>startindex</propertyname>\n<operator>equals</operator>\n<value>0</value>\n<restriction>and</restriction>\n</criteria>\n<criteria>\n<propertyname>offsetindex</propertyname>\n<operator>equals</operator>\n<value>10</value>\n<restriction>and</restriction>\n</criteria>\n</criterialist>\n</tns:management-webservice-criteria>\n\n
This is the URL:
https://avayasmgr/web/mgmtwebservice/?entityType=user&searchCriteria=<?xml version="1.0" encoding="UTF-8"?>\n<tns:management-webservice-criteria xmlns:tns="http://www.avaya.com/mgmt-web-criteria/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.avaya.com/mgmt-web-criteria/mgmt-web-criteria.xsd">\n<criterialist>\n<criteria>\n<propertyname>startindex</propertyname>\n<operator>equals</operator>\n<value>0</value>\n<restriction>and</restriction>\n</criteria>\n<criteria>\n<propertyname>offsetindex</propertyname>\n<operator>equals</operator>\n<value>10</value>\n<restriction>and</restriction>\n</criteria>\n</criterialist>\n</tns:management-webservice-criteria>\n\n
I don't think that this will work, because of the "&"-Chars in the URL which may "confuse" the webclient...
Does anybody have a sample URL of a working request?