Symantec IGA

 View Only
  • 1.  Web Services Endpoint (Forward Inc)

    Posted Oct 04, 2019 06:53 AM
    Hi IM Community,

    FYI, I am new to CA Identity Suite and would appreciate any guidance. We want to send 3 user attributes to a web services endpoint and to test this, we would like to use the SDKWS connector with the forwardinc service.

    This has been installed according to this guide https://docops.ca.com/ca-identity-manager/14-3/EN/programming/connector-programming-reference/sdk-sample-connectors/sdkws-sdk-web-services-connector/sdkws-sample-connector-build-requirements/build-the-sdkws-sample-connector

    On step 10, it says to go to the url http://localhost:8089/forwardinc (after starting tomcat) but this is a blank page. Are we supposed to see a user interface here? Apparently http://localhost:8089/forwardinc/services/UserService?wsdl should generate a WSDL but it is another blank page.

    How do we use forward inc web service properly to test the sending the attributes from IM to a web service endpoint?

    Thanks,
    Anwar


  • 2.  RE: Web Services Endpoint (Forward Inc)

    Broadcom Employee
    Posted Oct 04, 2019 11:14 AM
    Yes you are supposed to see this:
    1. Open a web browser and enter the following URL:
      http://localhost:8089/forwardinc
      The Forward Inc web page appears.
    So....
    Do you see the tomcat homepage?
    when starting tomcat:
    (Windows) Open a Command Prompt window, and then enter the following command:

    startup.bat

    what do you see in the tomcat console log?

    have you tried multiple browsers?

    Do you get an error on the page, when tomcat is not running?

    With the page being blank this would be a security issue with the browser or a deployment issue within tomcat.

    Bill Patton



  • 3.  RE: Web Services Endpoint (Forward Inc)

    Posted Oct 07, 2019 06:14 AM
    Edited by Anwar Koromah Oct 07, 2019 06:38 AM
    Bill,

    The console log does not give me any errors (see extract below).

    Oct 07, 2019 10:02:46 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.8.0_221\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\PROGRA~2\CA\SHARED~1\CAM\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\CA\Identity Manager\Connector Server SDK\thirdparty\apache-ant-1.8.2\bin;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;.
    Oct 07, 2019 10:02:46 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8089
    Oct 07, 2019 10:02:46 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 404 ms
    Oct 07, 2019 10:02:46 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Oct 07, 2019 10:02:46 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
    Oct 07, 2019 10:02:46 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8089
    Oct 07, 2019 10:02:46 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8099
    Oct 07, 2019 10:02:46 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31 config=null
    Oct 07, 2019 10:02:46 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 168 ms


    On Firefox, I just see the blank page and in Chrome and IE, I see a HTTP 400 error. When tomcat is not running, I get a connection refused error. I ran the page in debug mode on Firefox and see the following.

    I have tried to reinstall the connector server, but the same problem persists.

    I also found that a cause of HTTP 400 for tomcat could be the "/", as this is not allowed by default. However, I set the variable according to the post below and still no luck. https://stackoverflow.com/questions/36220740/why-is-this-url-returning-error-400-from-tomcat

    Does the page load correctly for you? To install, did you do any additional steps to what is described in the guide? FYI, the webapps directory in the tomcat home is empty.

    Thanks,
    Anwar


  • 4.  RE: Web Services Endpoint (Forward Inc)

    Broadcom Employee
    Posted Oct 07, 2019 06:45 AM
    Hi Anwar,

    The startup log you have copied/pasted has no information related to the deployment of the forwardinc application.
    From which path are you starting your Tomcat? i suspect that there is no forwardinc.war in the corresponding apache-tomcat-6.0.18\webapps folder.
    If it's the case (ie no forwardinc.war) then:
    • If the connector server and the connector server SDK are on the same machine, you could run the one under [IMHOMEDIR]\Connector Server    SDK\build\dist\resources\sdkws\apache-tomcat-6.0.18
    • If there are on different machine, then you should use [IMHOMEDIR]\Connector Server\jcs\resources\sdkws\apache-tomcat-6.0.18. The forwardinc.war shouldn't be in the corresponding webapps folder so i would copy it 1st from the CS SDK path mentioned above to the [IMHOMEDIR]\Connector Server\jcs\resources\sdkws\apache-tomcat-6.0.18\webapps
    Hope that helps.


  • 5.  RE: Web Services Endpoint (Forward Inc)

    Posted Oct 07, 2019 06:57 AM
    Hi Joffrey,

    The connector server and the connector server sdk are running on the same machine. The webapps folder is empty under the connector server path, as well as the connector server sdk path.This will most likely be the problem then.

    Is the forwardinc.war supposed to be deployed on installation of the connector server sdk or is there another step that deploys it?

    Thanks,
    Anwar


  • 6.  RE: Web Services Endpoint (Forward Inc)
    Best Answer

    Broadcom Employee
    Posted Oct 07, 2019 07:48 AM
    Anwar,

    forwardinc.war was supposed to be generated when you ran "ant inst" command.
    if jcs-connector-sdkws.zip was successfully generated in "Connector Server SDK\build\inst", i don't see why it would have failed for forwardinc.war in "\Connector Server SDK\build\dist\resources\sdkws\apache-tomcat-6.0.18\webapps"

    Just to double-check, can you search recursively from "[IMHOMEDIR]\Connector Server SDK", the file forwardinc.war?

    Thanks


  • 7.  RE: Web Services Endpoint (Forward Inc)

    Posted Oct 07, 2019 09:20 AM
    Hi Joffrey,

    Thank you for letting me know how its deployed. I ran the "ant inst" again and this time the forwardinc.war was created. I have started tomcat again and can see the content now.

    Thanks a lot,
    Anwar