|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
#1
|
|||
|
|||
how to update an item in Model Manager 15.5C using Web Services
I have tried many ways, including following the sample code provided to me by cocreate, but I continue to get an error "argument type mismatch" every time I try to update an item in Model Manager using web services.
I use UpdateItemRequest() and UpdateItemResponse() methods, making sure that I pass an array of Items into the UpdateItem method, but I keep getting the same error. I am trying to change the state of the an item in model manager using the web services interface by changing the attribute value for STATE, them updating the Item that holds the model that I'm trying to update. I have attempted to cast the Item object to a Model object as some of the sample code demonstrates, but I keep getting the same error. Has anyone ever done this type of thing successfully? Thanks |
#2
|
||||
|
||||
Re: how to update an item in Model Manager 15.5C using Web Services
There are known problems with the update web service calls when 1 attribute cannot be set.
The problem is that you probably query for an item, modify the state and then use the update call. The update call will 'attempt' to set all attributes that were passed (SFU, UNIQUE_ID_STRING etc). These fails when it contains most of system attributes. Simply create a new Item which has just the elid and the new state value you want to set only. |
#3
|
|||
|
|||
Re: how to update an item in Model Manager 15.5C using Web Services
wow, I will try that...thanks
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|