Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
Absent Member.. ccankaya Absent Member..
Absent Member..
9501 views

A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

Hi,

I have a problem about Problem Management wsdl retrieveProblem and retrieveProblemList methods. If I try push an xml like below get the SOAP fault like as "A CXmlApiException was raised in native code : error 15 : scxmlapi(15) - Invalid file handle provided on recordset SOAP request". Can anyone help me?

 

 

/*--retrieveProblemListRequest--*/

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:RetrieveProblemListRequest attachmentInfo="?" attachmentData="?" ignoreEmptyElements="true" updatecounter="?" handle="?" count="?" start="?">
         <!--1 or more repetitions:-->
         <ns:keys query="?" updatecounter="?">
            <!--Optional:-->
            <ns:ProblemID type="String" mandatory="?" readonly="?">PM10152</ns:ProblemID>
         </ns:keys>
      </ns:RetrieveProblemListRequest>
   </soapenv:Body>
</soapenv:Envelope>

 

 

 

 

/*---SOAP Fault message--*/

<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 15 : scxmlapi(15) - Invalid file handle provided on recordset SOAP request - ?</faultstring>
         <faultactor>Server</faultactor>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

0 Likes
1 Solution

Accepted Solutions
Abhijit K Acclaimed Contributor.
Acclaimed Contributor.

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

Hi CC,

 

Make changes as follows:

 

/*--retrieveProblemListRequest--*/

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:RetrieveProblemListRequest attachmentInfo="false" attachmentData="false" ignoreEmptyElements="true" updatecounter="" handle="" count="" start="">
         <!--1 or more repetitions:-->
         <ns:keys query="" updatecounter="">
            <!--Optional:-->
            <ns:ProblemID type="String" mandatory="" readonly="">PM10152</ns:ProblemID>
         </ns:keys>
      </ns:RetrieveProblemListRequest>
   </soapenv:Body>
</soapenv:Envelope>

 

 

Try with this request.

 

Re,

Abhijit K

 

10 Replies
Abhijit K Acclaimed Contributor.
Acclaimed Contributor.

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

Hi CC,

 

Make changes as follows:

 

/*--retrieveProblemListRequest--*/

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:RetrieveProblemListRequest attachmentInfo="false" attachmentData="false" ignoreEmptyElements="true" updatecounter="" handle="" count="" start="">
         <!--1 or more repetitions:-->
         <ns:keys query="" updatecounter="">
            <!--Optional:-->
            <ns:ProblemID type="String" mandatory="" readonly="">PM10152</ns:ProblemID>
         </ns:keys>
      </ns:RetrieveProblemListRequest>
   </soapenv:Body>
</soapenv:Envelope>

 

 

Try with this request.

 

Re,

Abhijit K

 

Absent Member.. ccankaya Absent Member..
Absent Member..

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

Hi Abhijit

thank you for your solution

 

 

0 Likes
Abhijit K Acclaimed Contributor.
Acclaimed Contributor.

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution
Hi ccankaya,

appreciate points...


re,
Abhijit
0 Likes
SkoRen Absent Member.
Absent Member.

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

Thank you, it works!

0 Likes
Established Member.. omerr
Established Member..

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

Can you kindly tell me where this xml file can be found.. i am getting the following error:

 

  4624(  4432) 06/22/2016 10:09:26  RTE E Caught XML API exception scxmlapi(16) - Invalid or missing file name in XML request

  4624(  1696) 06/22/2016 10:09:26 JRTE W Send error response: A CXmlApiException was raised in native code : error 16 : scxmlapi(16) - Invalid or missing file name in XML request

 

Where can this xml file be located and what could possibly be the error?

 

Thanks in advance

0 Likes
TomPowe Acclaimed Contributor.
Acclaimed Contributor.

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

To see XML requests and responses, you need to use the debug parameter of debughttp:1  You can put this in the sm.ini or directly on a servlet.

Established Member.. omerr
Established Member..

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

OK i will try this. but how to fix the error if found ?

0 Likes
Established Member.. omerr
Established Member..

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

This is the xml request trace - I am accessing form web-tier

3428( 1088) 06/27/2016 09:07:18 RTE D Parsing request document: <?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><getPreferences><ClientSysInfo><release>9</release><version>21</version><level>661</level><build>P8</build><hostname>172.20.9.177</hostname><networkAddress>172.20.9.177</networkAddress><hardware>amd64</hardware><OSName>Web</OSName><OSVersion>Unknown</OSVersion><type>scguiwweb</type><WebTierUrl>http://xxxx/sm/ess.do</WebTie...>
3428( 1088) 06/27/2016 09:07:18 RTE I SOAP client information scguiwweb 9.21.661 (P8) at 172.20.9.177
3428( 1088) 06/27/2016 09:07:18 RTE D Returning response: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><getPreferencesResponse attachmentCompressed="false" xmlns="http://servicecenter.peregrine.com/PWS"><preferences><preference name="ssl" value="true"/><preference name="trustedsignon" value="true"/><preference name="attachmentCompressed" value="true"/><preference name="SessionStartTimestamp" value="5CF7D27F63805C24"/></preferences></getPreferencesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
3428( 1088) 06/27/2016 09:07:18 RTE D setResponseXml() entered: size = 486, response = <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><getPreferencesResponse attachmentCompressed="false" xmlns="http://servicecenter.peregrine.com/PWS"><preferences><preference name="ssl" value="true"/><preference name="trustedsignon" value="true"/><preference name="attachmentCompressed" value="true"/><preference name="SessionStartTimestamp" value="5CF7D27F63805C24"/></preferences></getPreferencesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
3428( 1088) 06/27/2016 09:07:18 RTE D setResponseXml() finished
3428( 1088) 06/27/2016 09:07:18 RTE D requestProcessed() entered
3428( 1088) 06/27/2016 09:07:18 RTE D requestProcessed() finished
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: Verifying client's certificate...
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: Verifying client host name...
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: Got certificate from request!
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: Certificate's common name is xxxx
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: request was sent from 172.16.23.178
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: request was sent from IP address 172.16.23.178
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: Trying to resolve remote host name from IP 172.16.23.178...
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: Got a host name "xxxx" from IP/172.16.23.178
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: xxxx/172.16.23.178 is a trusted client
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: Checking client's certificate against the trusted client file...
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL: Trusted client file: E:\Program Files\HP\Service Manager 9.30\Server\RUN\trustedclients.keystore
3428( 6400) 06/27/2016 09:07:18 JRTE I SSL connection accepted
3428( 1088) 06/27/2016 09:07:18 RTE D Parsing request document: <?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><setPreferences><name>setPreferences</name><preferences><preference name="viewactivenotes" value="false"/><preference name="viewpromptforsave" value="true"/><preference name="clientprinting" value="true"/><preference name="clientsideunload" value="true"/><preference name="viewrecordlist" value="false"/><preference name="heartbeatinterval" value="15"/><preference name="compress_soap" value="true"/><preference name="ssl" value="true"/><preference name="viewclassicmenu" value="false"/><preference name="useservertabs" value="false"/><preference name="recordlistcount" value="50"/><preference name="clientformcache" value="true"/><preference name="chartrefresh" value="60"/><preference name="essuser" value="true"/></preferences></setPreferences></SOAP-ENV:Body></SOAP-ENV:Envelope>
3428( 1088) 06/27/2016 09:07:18 RTE D Returning response: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><setPreferencesResponse attachmentCompressed="false" xmlns="http://servicecenter.peregrine.com/PWS"/></SOAP-ENV:Body></SOAP-ENV:Envelope>

then is says login succeded but it never does login and logouts the same moment with the following exception:

 

3428( 6660) 06/27/2016 09:07:20 RTE I Connected to SOAP client at
3428( 6660) 06/27/2016 09:07:20 RTE I Thread attaching to resources with key 0x784DFB00
3428( 6660) 06/27/2016 09:07:20 JRTE I Sequence Number Generation is handled by thread TRCLIENT_SEQUENCENUMBER
3428( 1088) 06/27/2016 09:07:21 RTE D Login succeeded
3428( 1088) 06/27/2016 09:07:21 RTE D Setting uname to omer.rashid
3428( 1088) 06/27/2016 09:07:21 RTE W Exception occurred for method setLanguage and XML request <?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><setLanguage languageId="en"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
3428( 1088) 06/27/2016 09:07:21 RTE E Caught XML API exception scxmlapi(16) - Invalid or missing file name in XML request
3428( 6400) 06/27/2016 09:07:21 JRTE W Send error response: A CXmlApiException was raised in native code : error 16 : scxmlapi(16) - Invalid or missing file name in XML request
3428( 1088) 06/27/2016 09:07:21 JRTE I Termination signal: 0

0 Likes
TomPowe Acclaimed Contributor.
Acclaimed Contributor.

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

OK, that didn't help.  Remove debughttp:1 and add RTM:3 and debugdbquery:999 and try again. I'm hoping the log will show something more useful.

HPtoMF Contributor.
Contributor.

Re: A CXmlApiException was raised in native code : error 15 : scxmlapi(15)

Jump to solution

the reason why you are receiving this error is since , you dont have the inputs for all the fields

so just have one field, IM number / PM number and have the input for it (similar to the copy/paste below)

you should get a success in retrieving

--------------------------------------------------------------------------------------

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://servicecenter.peregrine.com/PWS" xmlns:com="http://servicecenter.peregrine.com/PWS/Common">
<soapenv:Header/>
<soapenv:Body>
<pws:RetrieveIncidentRequest attachmentInfo="" attachmentData="" ignoreEmptyElements="true" updatecounter="" handle="" count="" start="">
<pws:model query="">
<pws:keys query="" updatecounter="">
<!--Optional:-->
<pws:IncidentID type="String" mandatory="" readonly="">IM5203488</pws:IncidentID>
</pws:keys>
<pws:instance query="" uniquequery="" recordid="" updatecounter="">
<!--Optional:-->
<pws:IncidentID type="String" mandatory="" readonly="">IM5203488</pws:IncidentID>

<!--Optional:-->
<pws:attachments>
<!--Zero or more repetitions:-->
<com:attachment href="" contentId="" action="" name="" type="" len="" charset="" upload.by="" upload.date="" attachmentType=""/>
</pws:attachments>
</pws:instance>
<!--Optional:-->
<pws:messages>
<!--Zero or more repetitions:-->
<com:message type="String" mandatory="" readonly="" severity="" module=""></com:message>
</pws:messages>
</pws:model>
</pws:RetrieveIncidentRequest>
</soapenv:Body>
</soapenv:Envelope>

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. 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.