Making the XML Request

The XML Request to 3DPartStream.NET is made by sending a structured XML document via HTTP to 3DPartStream.NET. This document uses SOAP as the defining structure. The format of the document is as follows:

 

<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>Name of Interface</interfacename>

        <sessionid>0000</sessionid>

    </SOAP-ENV:Header>

    <SOAP-ENV:Body>

        <interfaceparameters>

            <firstelement>Info</firstelement>

            <secondelement>Info</secondelement>

            <thirdelement>Info</thirdelement>

        </interfaceparameters>

    </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

The bold face information represents the XML elements that need to be modified or added to the empty request template. For specific requests, look to the samples found in each of the XML Interface topics. The values for the elements in the interfaceparameters element are typically obtained by the application through a form or other means of user input.

Once the XML Request document has been constructed, it should be sent via HTTP to the appropriate 3DPartStream.NET service URL.

Sample Request

A sample request for SWGetModelView3D is shown below.

 

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

        <sessionid>0000</sessionid>

    </SOAP-ENV:Header>

    <SOAP-ENV:Body>

        <interfaceparameters>

            <model>modelName</model>

           </interfaceparameters>

    </SOAP-ENV:Body>

</SOAP-ENV:Envelope>