code: def checkResponse(self, ps, action):
          ''' 
          ps -- ParsedSoap
          action -- ws-action for response
          '''
          namespaceURI = self.wsAddressURI
          d = {namespaceURI:("MessageID","Action","To","From","RelatesTo")}
          typecodes = self._getWSAddressTypeCodes(**d)
          pyobjs = ps.ParseHeaderElements(typecodes)
  
          got_action = pyobjs.get((namespaceURI,"Action"))
          self._checkAction(action, got_action)
  
          From = pyobjs.get((namespaceURI,"From"))
          self._checkFrom(From)
  
          RelatesTo = pyobjs.get((namespaceURI,"RelatesTo"))
          self._checkRelatesTo(RelatesTo)
  
          To = pyobjs.get((namespaceURI,"To"))
          if To: self._checkReplyTo(Tof checkResponse(self, ps, action):
          ''' 
          ps -- ParsedSoap
          action -- ws-action for response
          '''
          namespaceURI = self.wsAddressURI
          d = {namespaceURI:("MessageID","Action","To","From","RelatesTo")}
          typecodes = self._getWSAddressTypeCodes(**d)
          pyobjs = ps.ParseHeaderElements(typecodes)
  
          got_action = pyobjs.get((namespaceURI,"Action"))
          self._checkAction(action, got_action)
  
          From = pyobjs.get((namespaceURI,"From"))
          self._checkFrom(From)
  
          RelatesTo = pyobjs.get((namespaceURI,"RelatesTo"))
          self._checkRelatesTo(RelatesTo)
  
          To = pyobjs.get((namespaceURI,"To"))
          if To: self._checkReplyTo(To)
docs: ps -- ParsedSoap
          action -- ws-action for response