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