This XML request is valid up to and including 3D PartStream.NET,
Version 5. For 3D PartStream.NET, Version 6, use SWGetAllModels2.
Description
Return an array of models available in the catalog.
Input is a search string to get all matching models. If the search string is blank then all models in the catalog are returned.
Output is a list of models in the catalog that match the search string.
In case of error, error number (<faultcode>) and error description (<faultstring>) are returned.
For a list of fault codes, see XML Faults.
Interface
<interfacename> |
SWGetAllModels |
Name of the interface |
---|---|---|
<sessionid> |
Id |
Id of the active session |
Parameters
<secure> |
Secure |
Security flag. |
<searchstring> |
String |
String to be used in the search |
Return Values
<success> |
Description |
Success description |
<returnval> |
model elements |
List of models matching the searchstring |
<model> |
ModelName |
Name of matching model |
Fault Values
<faultcode> |
ErrorNumber |
Error code |
<faultstring>
|
Description |
Description of the error |
Remarks
Sample SOAP/XML Request
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
<interfacename>SWGetAllModels</interfacename>
<sessionid>0000</sessionid>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<interfaceparameters>
<secure>off</secure>
<searchstring>Sample</searchstring>
</interfaceparameters>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sample SOAP/XML Success Response
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
<interfacename>SWGetAllModels</interfacename>
<sessionid>0000</sessionid>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<sessionid>0000</sessionid>
<returnval>List of Models in this Catalog
<model>samplepart</model>
<model>sampleassembly</model>
... as many as appropriate
</returnval>
<success>Description</success>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sample SOAP/XML Error Response
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
<interfacename>SWGetAllModels</interfacename>
<sessionid>0000</sessionid>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<sessionid>0000</sessionid>
<returnval></returnval>
<success>Description</success>
<faultcode>0000</faultcode>
<faultstring>Description</faultstring>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>