The main issue I encounter is, when trying to invoke one of the methods for example GetCard. The method is as follows:
getCard(string className, int cardId, bool cardIdSpecified, Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy10services_soap_Webservices_wsdl.attribute[] attributeList)
The documentation states that if attribute list is $null, the function will return all the attribute for the card. I call the function as follows
getcard("Servers",12345,$true,$null)
However I receive the following error in powershell
Exception calling "getCard" with "4" argument(s): "Client found response content type of 'multipart/related; type="application/xop+xml"; boundary="uuid:6fa10e4c-13c6-4f8c-b8b4-13ca9b4f4c7f"; start="<root.message@cxf.apache.org>"; start-info="application/soap+xml"', but expected 'application/soap+xml'.
The request failed with the error message
-uuid:6fa10e4c-13c6-4f8c-b8b4-13ca9b4f4c7f
Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml"
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Sender</soap:Value><soap:Subcode><soap:Value
xmlns:ns1="http://ws.apache.org/wss4j">ns1:SecurityError</soap:Value></soap:Subcode></soap:Code><soap:Reason><soap:Text xml:lang="en">A security error was
encountered when verifying the message</soap:Text></soap:Reason></soap:Fault></soap:Body></soap:Envelope>
I'm thinking the issue is with authentication as the SOAP message returned states security error when verifying the message. Any assistance is appreciated