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
search cancel

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

book

Article ID: 5023

calendar_today

Updated On:

Products

CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

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