Share

RETS Open Source Projects

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

RetsTransactionHandler.setMethod Problem

You are viewing a single message from this topic. View all messages.

  1. 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!
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.