- Revenera Community
- :
- FlexNet Operations
- :
- FlexNet Operations Forum
- :
- SetLineItemState From DEPLOYED to DRAFT - All input data in the request failed. Please check the spe...
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi All,
Good days.
I tried to change state of line item to draft but I'm getting error as below using POSTMAN/C# Code to test:-
https://ibb.co/jZ3N2J2
POST https://xxxxxxxxx.flexnetoperations.com/flexnet/services/v5/EntitlementOrderService?wsdl
Authorization Type Basic Auth UserName: xxxxx Password: xxxxxx
BODY:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:v5.webservices.operations.flexnet.com">
using (var eos = new EntitlementOrderClient())
{
eos.Open(ConfigurationManager.AppSettings["FNOODlogin"], ConfigurationManager.AppSettings["FNOODpassword"], ConfigurationManager.AppSettings["FNOCBaseURL"]);
try
{
var reqtype = new searchActivatableItemRequestType()
{
activatableItemSearchCriteria = new searchActivatableItemDataType()
{
activationId = new Flexnet.Entitlement.SimpleQueryType()
{
value = serialNumber,
searchType = Flexnet.Entitlement.simpleSearchType.EQUALS
},
partNumber = new Flexnet.Entitlement.SimpleQueryType()
{
value = LicenseProductCode,
searchType = Flexnet.Entitlement.simpleSearchType.EQUALS
},
}
};
reqtype.batchSize = "50";
reqtype.pageNumber = "1";
searchActivatableItemResponseType SearchResponse3 = eos.SearchActivatableItemRequest(reqtype);
if (SearchResponse3.statusInfo.status == Flexnet.Entitlement.StatusType.SUCCESS)
{
//SUCCESS
setLineItemStateResponseType SearchResponse2 = new setLineItemStateResponseType();
lineItemStateDataType[] request = new lineItemStateDataType[]
{
new lineItemStateDataType()
{
lineItemIdentifier = new entitlementLineItemIdentifierType {
primaryKeys = new entitlementLineItemPKType {
activationId = serialNumber,
},
uniqueId = SearchResponse3.activatableItem[0].activatableItemData.partNumber.uniqueId
},
includeChildItemsSpecified = false,
includeChildItems = false,
stateToSet = Status,
}
};
SearchResponse2 = eos.SetLineItemState(request);
if (SearchResponse2.statusInfo.status == Flexnet.Entitlement.StatusType.SUCCESS)
{
//SUCCESS
:
:
I even try using Google Wizdler, also getting same error.
https://docs.revenera.com/fno2020r2/soapapi/Default_frame.htm?Default.htm
I even try replaced the Unique ID with Entitlement ID, getting same error too.
Regards,
Micheale
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @michealeseecc ,
You only need to specify the activation ID for the entitlement line you wish to set to Draft. Example:
Thx,
- Jim
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @michealeseecc ,
You only need to specify the activation ID for the entitlement line you wish to set to Draft. Example:
Thx,
- Jim
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)