- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I in the progress of creating an application in .NET that will create Items and Item BOMs in PLM360 using the REST v1 API. I have succeeded in creating new and updating existing the Item's and also to handle the Lifecycle transitions of the Item's. When I came to the stage where I started implementing the functionallity for handling the BOM I ran into some problems right away. Using a small testapplication I create a new Assembly Item and a new Part Item and release both of them, so far no problems. When I then try to add the Part to Assembly Item's BOM I get a 500 Internal Server Error in response everytime.
The request I send to the server looks as follws:
Request Header:
=====================================
POST https://[XXXXXXXX].autodeskplm360.net/api/rest/v1/workspaces/57/items/8352/boms.xml HTTP/1.1
User-Agent: System.Net.HttpWebRequest (PLM.WebServices; .NET 4.0.30319.42000; TestApp)
Accept: application/xml
Content-Type: application/xml
Host: XXXXXXXX.autodeskplm360.net
Cookie: JSESSIONID=849577F7BC0573CB2888FC4215E157AC; PLM360LBR=b3JpZ2luLXByLWVudjAxLXBsbXdlYjAzLmF1dG9kZXNrcGxtMzYwLm5ldA==
Content-Length: 256
Expect: 100-continue
Request Body
================================================================
<?xml version="1.0"?>
<boms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<bom>
<bomDmsID>8354</bomDmsID>
<itemNumber>1</itemNumber>
<itemQuantity>10</itemQuantity>
</bom>
</boms>
I can mention that I have tried using JSON instead of XML, but the outcome is the same, 500 Internal Server Error!!
I have also tried to change the request data in Fiddler but no luck there either, still the same result!
This is the only thing that is not working right now, reading workspace data, creating/updating Items etc.. is working perfectly!
Does anyone have an idea of what I am doing wrong or what can cause this behavior?
Thanks
Krister
Solved! Go to Solution.