webMethods

webMethods

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.  Problem with XQJ and JAXR connection

    Posted Fri August 10, 2018 01:21 PM

    Hello all,

    this relates to Centrasite 10.1 on Win server 2012 R2 with the client side being Win 7 Enterprise and Java 8. The IDE I’m using is Eclipse.

    I’m trying to write a standalone program to run XQueries, and can’t get past step 1 which is to connect and disconnect. I’ve used the docs Centrasite 10.1 Developers’ Guide, the BasicTutorialCentrasiteAPIforJAXR.pdf and 8-2_navig-tutorial.pdf for guidance and sample code. It all looks straightforward enough but I get these errors when trying to connect:

    ‘ERROR - javax.xml.xquery.XQException: HTTP 404 null: http://devcentrasite:53307/CentraSite/Centrasite/ino:dav/ino:dav/redist/jaxr’ from the XQJ code.

    ‘ERROR - Caused by: java.io.IOException: HTTP 401 null: http://devcentrasite:53307/CentraSite/CentraSite/ino:dav/ino:dav/redist/jaxr’ from the JAXR code.

    I’m at a loss - I’ve tried all the tricks I know and paid careful attention to folder permissions, etc. If anyone can help I’d be grateful.
    Ideas?


    #CentraSite
    #webMethods
    #API-Management


  • 2.  RE: Problem with XQJ and JAXR connection

    Posted Tue October 22, 2019 08:24 AM

    ‘ERROR - javax.xml.xquery.XQException: HTTP 404 null: http://devcentrasite:53307/CentraSite/Centrasite/ino:dav/ino:dav/redist/jaxr’ from the XQJ code. - This error is due to url is wrong, “CentraSite” should have capital “S”.

    ‘ERROR - Caused by: java.io.IOException: HTTP 401 null: http://devcentrasite:53307/CentraSite/CentraSite/ino:dav/ino:dav/redist/jaxr’ from the JAXR code. - This message denotes either username or password is wrong. So CentraSite Authorization failed.

    Please find the attched is sample working code for JAXR connection. Ensure that the CLASSPATH includes directories that contain all JAR files in the CentraSite redist folder in \CentraSite\redist

    JAXRConnectionTest.java (1.42 KB)


    #CentraSite
    #webMethods
    #API-Management