Hi
What value do I pass to the CreateAsset API, for TypeCode? What typecode is an xml file? I've tried 'xml_file', 'file_xml', 'file' (which gives me a 'doc' file for some reason. As usual can't find this anywhere in the manual.
thanks
It is xml_file.
You can find all of the asset type codes in the Admin interface, just click the tree icon in the top right.
[quote]
It is xml_file.
You can find all of the asset type codes in the Admin interface, just click the tree icon in the top right.
[/quote]
Thanks, that's what I expected, but I'm getting this error back:
Fatal error: Uncaught exception 'Exception' with message 'SOAP fault encountered: File extension not allowed. The supplied file is of type "DOC". Expected types: xml. [CORE0106]' in /home/nps/public_html/MatrixSOAP/CMI_webservices/CreateXML.php:152
Stack trace:
#0 {main}
thrown in /home/nps/public_html/MatrixSOAP/CMI_webservices/CreateXML.php on line 152
Rather odd. Any ideas?
[quote]
Thanks, that's what I expected, but I'm getting this error back:
Fatal error: Uncaught exception 'Exception' with message 'SOAP fault encountered: File extension not allowed. The supplied file is of type "DOC". Expected types: xml. [CORE0106]' in /home/nps/public_html/MatrixSOAP/CMI_webservices/CreateXML.php:152
Stack trace:
#0 {main}
thrown in /home/nps/public_html/MatrixSOAP/CMI_webservices/CreateXML.php on line 152
Rather odd. Any ideas?
[/quote]
What are you passing for the name of the file? It seems you are passing a name with the .doc extension.
[quote]
What are you passing for the name of the file? It seems you are passing a name with the .doc extension.
[/quote]
Yep, I've just realised what was going on. I was picking up the filename from the xml source - for some reason it had a doc extension.
I've got it working OK now.