Symptoms
Some time the Web service response will give the following error, what is the cause of this error and how to fix it?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring>
<detail>
<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">sc-fnouatapp-01</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Diagnosis
The exception seems pretty straightforward. There is an element in the XML that the axis does not expect then the XML request is malformed. Either we have the wrong elements in the wrong places, or you have a namespace issue or extract char or number while WSDL parsed and used by other applications.
Solution
Correct the wrong formate or extra character and number in the request XML or wrong tag etc.. for an example.
<ns1:searchEntitlementRequest1>
..
</ns1:searchEntitlementRequest1>
From:
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:v2.webservices.operations.flexnet.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<ns0:Body>
<ns1:searchEntitlementRequest1>
<ns1:entitlementSearchCriteria>
<ns1:entitlementId>
<ns1:value>Ent_ID-TEST</ns1:value>
<ns1:searchType>EQUALS</ns1:searchType>
</ns1:entitlementId>
<ns1:productType>LICENSED_PRODUCT</ns1:productType>
</ns1:entitlementSearchCriteria>
<ns1:batchSize>100</ns1:batchSize>
<ns1:pageNumber>1</ns1:pageNumber>
</ns1:searchEntitlementRequest1>
</ns0:Body>
</SOAP-ENV:Envelope>
To fix the issue remove the number 1 in both the places:
<<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:v2.webservices.operations.flexnet.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<ns0:Body>
<ns1:searchEntitlementRequest>
<ns1:entitlementSearchCriteria>
<ns1:entitlementId>
<ns1:value>Ent_ID-TEST</ns1:value>
<ns1:searchType>EQUALS</ns1:searchType>
</ns1:entitlementId>
<ns1:productType>LICENSED_PRODUCT</ns1:productType>
</ns1:entitlementSearchCriteria>
<ns1:batchSize>100</ns1:batchSize>
<ns1:pageNumber>1</ns1:pageNumber>
</ns1:searchEntitlementRequest>
</ns0:Body>
</SOAP-ENV:Envelope>
NOTE: If the issue is still there then please open a support case.
Related Articles
-42 UNSUPPORTED: "ERROR: BLANK FEATURE" Seen When Trying to Checkout License 4Number of Views Activation Error - Trying to Return a Fulfillment Issued to a Different Machine 4Number of Views Create a Simple Entitlement with SoapUI for FlexNet Operations On-Premises 8Number of Views flxBotErr.rest.operation Error Thrown When Trying to Create a Cloud License Server. 9Number of Views [FNO-ALM] - How to split an entitlement line item count in the End user portal 21Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago