SWGetProperties

 

Description

Return an array of elements that describe the part.  Each element of the array will provide attribute name and value pair.

 

For a list of fault codes, see XML Faults.

 

Interface

 

<interfacename>

SWGetProperties

Name of interface

<sessionid>

Id

Id of the active session

 

Parameters

 

<secure>

Secure

Security flag

<model>

name

Name of the model

Return Values

 

 

 

<returnval>

Set of attribute elements

Multiple attributes

<attribute>

Information

Attribute information. Parent of <name> and <value>

<name>

String

Name of the attribute

<value>

Value

Value of the attribute

 

Fault Values

 

<faultcode>

ErrorNumber

Error code

<faultstring>

Description

Description of the error

 

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>SWGetProperties</interfacename>

        <sessionid>0000</sessionid>

    </SOAP-ENV:Header>

    <SOAP-ENV:Body>

        <interfaceparameters>

            <secure>off</secure>

            <model>fulltest</model>

        </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>SWGetProperties</interfacename>

    </SOAP-ENV:Header>

    <SOAP-ENV:Body>

        <sessionid>0000</sessionid>

        <returnval>Available Attributes for samplepart

            <attribute>

                <name>MyProp1</name>

                <value>test1</value>

            </attribute>

            <attribute>

                <name> </name>

                <value></value>

            </attribute>

 

            ... 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>SWGetProperties</interfacename>

        <sessionid>0000</sessionid>

    </SOAP-ENV:Header>

    <SOAP-ENV:Body>

        <sessionid>0000</sessionid>

        <returnval></returnval>

        <success>Description</success>

        <faultcode>Error Number</faultcode>

        <faultstring>Error Description</faultstring>

    </SOAP-ENV:Body>

</SOAP-ENV:Envelope>