Created a custom ITPAM process to interact with CA Asset Portfolio Management 14.1. When trying to use the login method it fails with: SOAP invocation failed

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

Created a custom ITPAM soap process to invoke CA Asset Portfolio Management web services.  When calling the 'login' method, it fails with: 

SOAP invocation failed: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (415Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'. 

 

Environment:
CA Asset Portfolio Management 14.1, any patch level
Cause:

Error caused by an incorrect WSDL path statement. 

Resolution:

Changed the code to reference the correct WSDL. 

Changed the WSDL path reference from:  

http://APMServerName:99/APIService/Gen/BAAAAAAA/C/Service.svc/svc

to

http://APMServerName:99/APIService/Gen/BAAAAAAA/C/Service.svc/basic