EBDN - Community - Question & Answers

  Thursday, 13 January 2022
  2 Replies
  2K Visits
0
Votes
Undo
I try to update an object by the web service : BasicDataService/UpdateObjectData.

With my environment same c# code, same url post and same struct body it's work fine but in customer environment I receive "400 Bad request".
In the customer environment, the cmd works:

  • post by: api/rs/v1 objects/{0}?cover={1}
  • get by: api/rs/v1 catalogs
  • post by: BasicDataService GetObjectData


the url used is : http://frsdsq02:8734/BasicDataService/UpdateObjectData/SD05_EB_Test
The body is :

<UpdateObjectDataRequest xmlns="http://schemas.datacontract.org/2004/07/Aucotec.EngineeringBase.Server.Service"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<OutputObjectData>true</OutputObjectData>
<OutputTimestamp>false</OutputTimestamp>
<UpdateData>
<UpdateObjectItem>
<Attributes>
<AttributeItem i:type="UpdateAttributeItem">
<AttributeId>7</AttributeId>
<DictRef i:nil="true"/>
<DimensionInfo i:nil="true"/>
<Flags>0</Flags>
<IsDictRef>false</IsDictRef>
<IsDimension>false</IsDimension>
<LanguageItems i:nil="true"/>
<TextAlias i:nil="true"/>
<Value i:type="a:int"
xmlns:a="http://www.w3.org/2001/XMLSchema">132</Value>
<AddToTab i:nil="true"/>
<ResetFlags>255</ResetFlags>
<SetFlags>255</SetFlags>
</AttributeItem>
<AttributeItem i:type="UpdateAttributeItem">
<AttributeId>328</AttributeId>
<DictRef i:nil="true"/>
<DimensionInfo i:nil="true"/>
<Flags>0</Flags>
<IsDictRef>false</IsDictRef>
<IsDimension>false</IsDimension>
<LanguageItems i:nil="true"/>
<TextAlias i:nil="true"/>
<Value i:type="a:string"
xmlns:a="http://www.w3.org/2001/XMLSchema">Pressure Gauge</Value>
<AddToTab i:nil="true"/>
<ResetFlags>255</ResetFlags>
<SetFlags>255</SetFlags>
</AttributeItem>
<AttributeItem i:type="UpdateAttributeItem">
<AttributeId>101968</AttributeId>
<DictRef i:nil="true"/>
<DimensionInfo i:nil="true"/>
<Flags>0</Flags>
<IsDictRef>false</IsDictRef>
<IsDimension>false</IsDimension>
<LanguageItems i:nil="true"/>
<TextAlias i:nil="true"/>
<Value i:type="a:string"
xmlns:a="http://www.w3.org/2001/XMLSchema">0</Value>
<AddToTab i:nil="true"/>
<ResetFlags>255</ResetFlags>
<SetFlags>255</SetFlags>
</AttributeItem>
<AttributeItem i:type="UpdateAttributeItem">
<AttributeId>101969</AttributeId>
<DictRef i:nil="true"/>
<DimensionInfo i:nil="true"/>
<Flags>0</Flags>
<IsDictRef>false</IsDictRef>
<IsDimension>false</IsDimension>
<LanguageItems i:nil="true"/>
<TextAlias i:nil="true"/>
<Value i:type="a:string"
xmlns:a="http://www.w3.org/2001/XMLSchema">test rev</Value>
<AddToTab i:nil="true"/>
<ResetFlags>255</ResetFlags>
<SetFlags>255</SetFlags>
</AttributeItem>
<AttributeItem i:type="UpdateAttributeItem">
<AttributeId>102799</AttributeId>
<DictRef i:nil="true"/>
<DimensionInfo i:nil="true"/>
<Flags>0</Flags>
<IsDictRef>false</IsDictRef>
<IsDimension>false</IsDimension>
<LanguageItems i:nil="true"/>
<TextAlias i:nil="true"/>
<Value i:type="a:boolean"
xmlns:a="http://www.w3.org/2001/XMLSchema">false</Value>
<AddToTab i:nil="true"/>
<ResetFlags>255</ResetFlags>
<SetFlags>255</SetFlags>
</AttributeItem>
<AttributeItem i:type="UpdateAttributeItem">
<AttributeId>10060</AttributeId>
<DictRef i:nil="true"/>
<DimensionInfo i:nil="true"/>
<Flags>0</Flags>
<IsDictRef>false</IsDictRef>
<IsDimension>false</IsDimension>
<LanguageItems i:nil="true"/>
<TextAlias i:nil="true"/>
<Value i:type="a:string"
xmlns:a="http://www.w3.org/2001/XMLSchema">Emerson</Value>
<AddToTab i:nil="true"/>
<ResetFlags>255</ResetFlags>
<SetFlags>255</SetFlags>
</AttributeItem>
<AttributeItem i:type="UpdateAttributeItem">
<AttributeId>101961</AttributeId>
<DictRef i:nil="true"/>
<DimensionInfo i:nil="true"/>
<Flags>0</Flags>
<IsDictRef>false</IsDictRef>
<IsDimension>false</IsDimension>
<LanguageItems i:nil="true"/>
<TextAlias i:nil="true"/>
<Value i:type="a:string"
xmlns:a="http://www.w3.org/2001/XMLSchema">modele A</Value>
<AddToTab i:nil="true"/>
<ResetFlags>255</ResetFlags>
<SetFlags>255</SetFlags>
</AttributeItem>
</Attributes>
<ClientId i:nil="true"/>
<CoverId>0</CoverId>
<Designation i:nil="true"/>
<Flags>0</Flags>
<LockStructure i:nil="true"/>
<ObjectId>00000000-0000-0000-0000-000002408C00</ObjectId>
<ParentId i:nil="true"/>
<Protected i:nil="true"/>
<Timestamp i:nil="true"/>
<TypeId>0</TypeId>
<AddAssocList i:nil="true"/>
<Children i:nil="true"/>
<DeleteAssocList i:nil="true"/>
<OperationModifier>Standard</OperationModifier>
<UpdateMode>Update</UpdateMode>
</UpdateObjectItem>
</UpdateData>
</UpdateObjectDataRequest>