IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Functions of Tamino WebDav BasicClient

    Posted Mon March 03, 2003 10:06 AM

    (How to disfunction the ‘simile face’? I find that some typing is replaced by the simile face …)

    Hi,
    I want to create a query using BasicClient, here is my query …
    Header:
    SEARCH /taminowebdavserver HTTP/1.1
    Content-type: text/xml; charset=“UTF-8”
    Host: 137.189.94.75:80
    Content-length: 80

    Content:
    <?xml version="1.0" encoding="utf-8" ?>

    <D:basicsearch>
    <D:select>
    <D:prop>
    <D:displayname/>
    </D:prop>
    </D:select>
    <D:from>
    <D:scope>
    <D:href>/taminowebdavserver/news/</D:href>
    </D:scope>
    </D:from>
    </D:basicsearch>


    However, it return fails… Here is the response:
    Header:
    HTTP/1.1 400

    Date: Mon, 03 Mar 2003 07:56:50 GMT

    Server: Apache/1.3.23 (Win32) mod_jk/1.2.0 Resin/2.1.2

    Set-Cookie: JSESSIONID=CD0C125DB819D2BD4F54287BDC414D7D; Path=/taminowebdavserver

    Connection: close

    Transfer-Encoding: chunked

    Content-Type: text/xml; charset=“UTF-8”

    However the content return something like this:

    <D:responsedescription>Error on line 3:XML document structures must start and end within the same entity.</D:responsedescription>

    I can’t find the problem in line 3. What’s the problem actually? Does it relate to the problem I asked in the previous question?

    Also, If I want to implement Tamino WebDav Sever into my application, where can I find the related javadoc?


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: Functions of Tamino WebDav BasicClient

    Posted Mon March 03, 2003 10:47 AM

    Hi,

    it seems that your contentlength header is not set properly (80 in your example). Please check in BasicClient, if Request/Auto-create Content-length header is set.

    Regards,
    Martin


    #Tamino
    #API-Management
    #webMethods


  • 3.  RE: Functions of Tamino WebDav BasicClient

    Posted Tue March 04, 2003 04:30 AM

    Thanks Martin, the previous problem is solved. I want to ask the use of ‘like’…

    I have followed the desription of the draft at http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html and then I’ve created a query to use ‘like’

    <?xml version="1.0" encoding="utf-8" ?>

    <D:basicsearch>
    <D:select>
    <D:prop>
    <D:displayname/>
    <D:getcontenttype/>
    <xsv:xpath name=“title”>
    /NewsML/NewsItem/NewsComponent
    </xsv:xpath>
    </D:prop>
    </D:select>
    <D:from>
    <D:scope>
    <D:href>/taminowebdavserver/news/</D:href>
    </D:scope>
    </D:from>
    <D:where>
    <D:like caseless=“yes”>
    <D:prop>
    <D:getcontenttype/>
    </D:prop>
    <D:literal>text/%</D:literal>
    </D:like>
    </D:where>
    </D:basicsearch>


    However, the following results …
    <D:responsedescription>operator DAV::like is an unprocessable enitity</D:responsedescription>
    What’s the problem?


    #webMethods
    #API-Management
    #Tamino


  • 4.  RE: Functions of Tamino WebDav BasicClient

    Posted Tue March 04, 2003 06:30 AM

    Hi,

    according to the WebDAV draft (http://www.webdav.org/dasl/) “like” is an optional operator and is currently not supported by Tamino WebDAV Server.

    Regards,
    Martin


    #Tamino
    #API-Management
    #webMethods


  • 5.  RE: Functions of Tamino WebDav BasicClient

    Posted Tue March 04, 2003 08:57 AM

    I also want to ask , from my header I specified

    SEARCH /taminowebdavserver HTTP/1.1

    Actually, what is the difference between ‘SEARCH’ and ‘PROPFIND’, I also want to know the meaning of other ‘support method set’


    #Tamino
    #webMethods
    #API-Management


  • 6.  RE: Functions of Tamino WebDav BasicClient

    Posted Tue March 04, 2003 10:44 AM

    The basic difference between PROPFIND and SEARCH is the , cannot be specified by PROPFIND.

    >>I also want to ask , from my header I
    >>specified SEARCH /taminowebdavserver HTTP/1.1

    What you want to ask?

    >> I also want to know the meaning of
    >> other ‘support method set’
    ??

    Regards,
    Martin


    #API-Management
    #Tamino
    #webMethods