# 22. Virtuoso Functions Guide - uddi_save_tModel

Chapter Contents | Prev | Next
Keyword Search:
www.openlinksw.com
docs.openlinksw.com
Book Home
Contents
Preface
Virtuoso Functions Guide
Administration
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
uddi_delete_binding
uddi_delete_business
uddi_delete_service
uddi_delete_tmodel
uddi_discard_authtok...
uddi_find_binding
uddi_find_business
uddi_find_service
uddi_find_tmodel
uddi_get_authtoken
uddi_get_bindingdeta...
uddi_get_businessdet...
uddi_get_businessdet...
uddi_get_registeredi...
uddi_get_servicedeta...
uddi_get_tmodeldetai...
uddi_save_binding
uddi_save_business
uddi_save_service
uddi_save_tmodel
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
XML
XPATH & XQUERY
Functions Index

## uddi_save_tModel

Adds or updates one or more tModel structures.
Syntax

    <uddi_save_tModel
      generic="1.0"
      xmlns="urn:uddi-org:api" >
    	<authInfo/>
    	<tModel/> [<tModel/>...] | <uploadRegister/> [<uploadRegister/>...]
    </uddi_save_tModel>

Attributes & Children
authInfo – This required argument is an element that contains an authentication token obtained using the get_authToken call.
tModel – One or more complete tModel structures can be passed. If adding a new tModel, the tModelKey value should be passed as an empty element.
uploadRegister – One or more resolvable HTTP URL addresses that each point to a single and valid tModel structure. This variant argument allows a registry to be updated to reflect the contents of an XML document that is URL-addressable. The URL must return a pure XML document that only contains a tModel structure as its top-level element, and must be accessible using the standard HTTP-GET protocol.
Return Types

This message returns a tModelDetail message containing the new registered information for the effected tModel structures.

Errors

If an error occurs in processing this message, a dispositionReport structure will be returned to the caller in a SOAP Fault. The following error information will be relevant:

Error Code | Description
--- | ---
E_invalidKeyPassed | signifies that the request cannot be satisfied because one or more uuid_key values specified is not a valid key value. This will occur if a uuid_key value is passed in a tModel that does not match with any known tModel key.
E_authTokenExpired | signifies that the authentication token value passed in the authInfo argument is no longer valid because the token has expired.
E_authTokenRequired | signifies that the authentication token value passed in the authInfo argument is either missing or is not valid.
E_userMismatch | signifies that one or more of the uuid_key values passed refers to data not controlled by the entity represented by the authentication token.
E_operatorMismatch | signifies that one or more of the uuid_key values passed refers to data not controlled by the server that received the request for processing.
E_keyRetired | signifies that the request cannot be satisfied because one or more uuid_key values specified has previously been hidden or removed by the requester. This specifically applies to the tModelKey values passed.
E_invalidURLPassed | an error occurred with one of the uploadRegister URL values.
E_accountLimitExceeded | signifies that user account limits have been exceeded.