public function toXMLString() { $str = ''; $str .= '<ns:GetPalDetailsReq>'; if ($this->GetPalDetailsRequest != NULL) { $str .= '<ns:GetPalDetailsRequest>'; $str .= $this->GetPalDetailsRequest->toXMLString(); $str .= '</ns:GetPalDetailsRequest>'; } $str .= '</ns:GetPalDetailsReq>'; return $str; }
public function toXMLString() { $str = ''; $str .= '<urn:GetPalDetailsReq>'; if ($this->GetPalDetailsRequest != null) { //prop is not a collection //prop is complex //prop is not enum //does not contain attribute or is attribute $str .= '<urn:GetPalDetailsRequest>'; $str .= $this->GetPalDetailsRequest->toXMLString(); $str .= '</urn:GetPalDetailsRequest>'; } $str .= '</urn:GetPalDetailsReq>'; return $str; }