2009-06-19 16:07:45 UTC
Hi there,
I've been using JRETSC for posting RETS Update transactions for the past few weeks now (excellent work, by the way.)
I may have stumbled across a bug in the "setMethod" method of the RetsTransactionHandler class. After I successfully login to our RETS server, I use the following code to perform an update transaction:
....
String dmqlUpdate = "Resource=Property&ClassName=3&Type=Add&Delimiter=|Record=123=FHNST|456=REGOW,OPTIO|789=2009";
RetsTransactionHandler rth = auth.getUpdateHandler();
rth.setMethos("POST");
rth.executeTransaction(dmqlUpdate);
RetsResponse resp = rth.executeTransaction(dmqlUpdate);
StringBuffer buf = resp.getResponseContent();
....
When I examine the HTTP POST request being made to the server, I receive the following:
POST /Update.asmx/Update HTTP/1.1
Host: <removed>
Connection: keep-alive
User-Agent: <removed>
RETS-Version: RETS/1.8
Cookie: <removed>
Method: POST
Authorization: <removed>
RETS-UA-Authorization: Digest <removed>
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
The content-length is zero, even though my dmqlUpdate variable contains the code above. Should this not contain the length of the dmqlUpdate variable I passed to "executeTransaction" as well as the actual code that it will be POSTing?
Any/all help is appreciated!