NO CONTENT TYPE in SWAREF.XSD

Document ID : KB000021309
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue:

Try to access the IT Pam Soap Web services using:
http://<server>:<port>/itpam/soap?wsdl.

This wsdl imports a schema file swaref.xsd.

It fails to process the wsdl because there is no content-type for the xsd file.

Cause:

There is a problem with using BMC Control-M to automatically start CA PAM Workflows, the Control-M is not able to call the soap method as the content-type of the xsd file is missing.

Workaround:

The content type of a WSDL or an .XSD file is text/html by default. From a product point of view this is not a bug as other tools can consume the WSDL.

There is a workaround:

  • Stop PAM Orchestrator;

  • Delete <pam_dir>\server\c2o\tmp directory;

  • Backup web.xml file under the folder

    for release 3.1: <pam_dir>\server\c2o\deploy\jboss-web.deployer\conf,

    for release 4.0: <pam_server>\server\c2o\deployers\jbossweb.deployer;

  • Edit the file web.xml and add xsd mime-mapping as follows (It may be easier to look for xpm in the file, copy paste mapping element for it and modify it to xsd with type text/xml):

    <mime-mapping><extension>xpm</extension><mime-type>image/x-xpixmap</mime-type></mime-mapping><mime-mapping><extension>xsd</extension><mime-type>text/xml</mime-type></mime-mapping>
  • Restart PAM Orchestrator