system.ws.toDict

Sepasoft MES Module Suite

system.ws.toDict(wsVariable)

Converts a web service variable into a python dictionary.

Syntax

system.ws.toDict(wsVariable)
  • Parameters

WSVariable  wsVariable - The web service variable to be converted. Must be complex.

  • Returns

A python dictionary representing the given Web Service Variable.

  • Scope

All

Code Examples

Code
result = system.ws.runWebService("LengthConvertor")
print system.ws.toDict(result)

Output

Code
{u'Root': {u'ChangeLengthUnitResponse': {u'ChangeLengthUnitResult': u'0.083333333333333343'}}}

 

 

 

Sepasoft MES Module Suite