NOTICE: Branded Content
NOTICE: Certain versions of content (“Material”) accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.
Service Manager / Service Center User Discussions
cancel

error in SOAP UI in HP

SOLVED
Go to solution
clöd Absent Member.
Absent Member.

error in SOAP UI in HP

Hi All,

 

Am getting an error when i using Soap UI for creating a webservices in my HP SM711.

 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Server</faultcode>
         <faultstring>A CXmlApiException was raised in native code : error 20 : scxmlapi(20) - Authentication failure</faultstring>
         <faultactor>Server</faultactor>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 

this is the error. Kindly help me on this.

1 ACCEPTED SOLUTION

Accepted Solutions
-m- Absent Member.
Absent Member.
Solution

Re: error in SOAP UI in HP

Make sure the Authorization (Username and Password) is populated  for the SOAP Request (see soapUI_auth.png).

 

Configure the Preferences (File menu -> Preferences) to include the authentication info in the header (see soapUI_header.png).

12 REPLIES
ramesh9 Acclaimed Contributor.
Acclaimed Contributor.

Re: error in SOAP UI in HP

Error says authentication failure.

 

Make sure in SOAP UI, you specify a operator who has "SOAP API" rights in "Startup tab" of operator record.

clöd Absent Member.
Absent Member.

Re: error in SOAP UI in HP

Thanks for your reponse,

 

Yeah i have the operato who having this access. but still getting the same.

Abhijit K Acclaimed Contributor.
Acclaimed Contributor.

Re: error in SOAP UI in HP

Post complete soap request ......

where you are giving credentials in SoapUi?

regards,
Abhijit K
clöd Absent Member.
Absent Member.

Re: error in SOAP UI in HP

Hi Abhijit,

 

thanks for your response,

 

this is what generated in the Soap UI and please find the screenshot too,

 

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7" xmlns:com="http://schemas.hp.com/SM/7/Common" xmlns:xm="http://www.w3.org/2005/05/xmlmime">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:CreatenameRequest attachmentInfo="?" attachmentData="?" ignoreEmptyElements="true">
         <ns:model query="?">
            <ns:keys query="?">
               <!--Optional:-->
               <ns:Name type="String" mandatory="?" readonly="?">?</ns:Name>
            </ns:keys>
            <ns:instance query="?" uniquequery="?" recordid="?">
               <!--Optional:-->
               <ns:Name type="String" mandatory="?" readonly="?">Gowtham</ns:Name>
               <!--Optional:-->
               <ns:address type="String" mandatory="?" readonly="?">Salem</ns:address>
               <!--Optional:-->
               <ns:attachments>
                  <!--Zero or more repetitions:-->
                  <com:attachment xm:contentType="application/?" href="?" contentId="?" action="?" name="?" type="?" len="?" charset="?" attachmentType="?">cid:807980173730</com:attachment>
               </ns:attachments>
            </ns:instance>
            <!--Optional:-->
            <ns:messages>
               <!--Zero or more repetitions:-->
               <com:message severity="?" module="?">?</com:message>
            </ns:messages>
         </ns:model>
      </ns:CreatenameRequest>
   </soapenv:Body>
</soapenv:Envelope>

Abhijit K Acclaimed Contributor.
Acclaimed Contributor.
clöd Absent Member.
Absent Member.

Re: error in SOAP UI in HP

hi,

 

Still am getting this below error in my soap UI,

 

 CXmlApiException was raised in native code : error 20 : scxmlapi(20) - Authentication failure

Abhijit K Acclaimed Contributor.
Acclaimed Contributor.

Re: error in SOAP UI in HP

Hi,

 

Kindly attach your sm.log

clöd Absent Member.
Absent Member.

Re: error in SOAP UI in HP

Hi Abhijit,

 

Please find my sm.log,

John_Baker Absent Member.
Absent Member.

Re: error in SOAP UI in HP

Did you set a username and password as an HTTP Authorization header? I think SOAP UI can do this for you but the process is as follows:

 

1. Create a string username+":"+password

2. Base64 encode that string.

3. Set the HTTP Authorization header with the value from (2).

 

 

John

--

SSO Plugin for HP Service Manager / Service Request Catalog

http://www.ssoforservicemanager.com

clöd Absent Member.
Absent Member.

Re: error in SOAP UI in HP

Hi,

 

Can u provide me the step to step instrcution to proceed this.

-m- Absent Member.
Absent Member.
Solution

Re: error in SOAP UI in HP

Make sure the Authorization (Username and Password) is populated  for the SOAP Request (see soapUI_auth.png).

 

Configure the Preferences (File menu -> Preferences) to include the authentication info in the header (see soapUI_header.png).

clöd Absent Member.
Absent Member.

Re: error in SOAP UI in HP

Hi,,

 

it works!!!!!

Top Contributors Last 30 Days