def isSoapFirstChild(self,document): """Return first child of the document, if it is SOAP request, return first child of the body envelope """ # SOAP ?? firstChild = self.getFirstChildNode(document) if Soap.isSoap(firstChild): soapCls = Soap.SOAP(firstChild) firstChild = soapCls.getNode(Soap.soap_env_NS[soapCls.nsIndex],"Body") firstChild = self.getFirstChildNode(firstChild) self.isSoap = True return firstChild
def isSoapFirstChild(self, document): """Return first child of the document, if it is SOAP request, return first child of the body envelope """ # SOAP ?? firstChild = self.getFirstChildNode(document) if Soap.isSoap(firstChild): self.isSoap = True soapCls = Soap.SOAP(firstChild) self.soapVersion = soapCls.getSOAPVersion() firstChild = soapCls.getWPSContent() self.isSoapExecute = soapCls.getSoapExecute() return firstChild
def isSoapFirstChild(self,document): """Return first child of the document, if it is SOAP request, return first child of the body envelope """ # SOAP ?? firstChild = self.getFirstChildNode(document) if Soap.isSoap(firstChild): self.isSoap = True soapCls = Soap.SOAP(firstChild) self.soapVersion=soapCls.getSOAPVersion() firstChild=soapCls.getWPSContent() self.isSoapExecute=soapCls.getSoapExecute() return firstChild